I have something like this:
<TextInput
style={{height: 40, borderColor: 'gray', borderWidth: 1}}
value={0}
onChangeText={(input) => this.setState({ value: input })}
/>
However, the input box is always empty after load, any ideas?
TextInput component only accept strings. Looks like you have a integer there. Try changing that to a string. Heres a link to the doc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With