TextInput underline color for ios in react-native

I am doing responsive mobile apps for android and ios. In my project I am using TextInput (ios) component. This component is displayed without underlining. How to use TextInput with color underline in ios.

sample code -

<TextInput
 ref={'cardbatch1'}                 
 keyboardType = 'numeric'
 placeholder = 'Batch Number'
 autoCapitalize = 'none'                                                    
/>

      

+3


source to share


1 answer


You can add borderBottomWidth and borderBottomColor to TextInput, or just draw a view with 1 or 2 px height below TextInput.



+12


source







All Articles