Here's my code snippet of a TextInput component in React-Native:
The render on the simulator looks like this:
I want to make the input field only accept decimal number <= 11.99 to mimic the highest input for inches for a person's height. In onChangeText
function, I'm updating the value of the state.
Any ideas how I can implement this input bound with a max value? Do I check the value inside onChangeText
and then set the values accordingly?