Check out example codes for "styled components textinput". It will help you in understanding the concepts better.

Code Example 1

export const TextInputElement = styled.TextInput.attrs({
  placeholderTextColor: 'gray',
})`
  font-size: 15px;
  line-height: 18px;
  color: '#000';
  border-color: '#AAA';
  border-bottom-width: 1.5px;
`;

Learn ReactJs, React Native from akashmittal.com