TextInput return type in React Native
onChangeText is a simple prop, that gives whatever is the value of the input field on every change.//string
onChange passes an event with { nativeEvent: { eventCount, target, text} }
. //object
You can find more about the difference here. Simply change it to onChangeText will work.