How to set returnKeyType to all TextInput fields inside one application?
I'm currently using tcomb-form-native and have to define returnKeyType again for every field, I just want to define it once and should work in every component.
any ideas?
How to set returnKeyType to all TextInput fields inside one application?
I'm currently using tcomb-form-native and have to define returnKeyType again for every field, I just want to define it once and should work in every component.
any ideas?
You have a couple good options
returnKeyType=whatever
in its props, and use this component for all your text input instead.react-native-global-props
, which seems to have been created for this exact purpose. Here is the link to the repository for more information / instruction