byteburgers / react-native-autocomplete-input

Pure javascript autocomplete input for react-native
https://byteburgers.com/autocomplete
MIT License
818 stars 255 forks source link

No way to provide style for the TextInput itself #196

Closed ikoazoulay closed 3 years ago

ikoazoulay commented 3 years ago

No way to set fontsize for it for example.

mrlaessig commented 3 years ago

Did you try to set the style on the AutocompleteInput prop?

<Autocomplete
  style={{
    fontSize: 20,
  }}
 //...
/>

You can also render your own input by passing a render function into renderTextInput:

<Autocomplete
  renderTextInput={(props) => <TextInout {...props} style={/*...*/} />}
 //...
/>