in react-native, I have:
Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `TextInput`, expected `string`.
I have a postalCode
and it is numeric value.
I have set the keyboardType="numeric"
on <TextInput />
but I still have this error on ios/android/web.
How can I fix it?
Just convert your number to a string
<TextInput value={postalCode.toString()} ...