halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.99k stars 293 forks source link

Readonly mode #8

Closed arhmnsh closed 7 years ago

arhmnsh commented 8 years ago

Is there any way to make the input fields readonly?

halilb commented 7 years ago

You can use TextInput's editable props for that purpose:

<Hoshi
  editable={false}
  label={'Town'}
  borderColor={'#b76c94'}
  maskColor={'#F9F7F6'}
/>