I'm using react native nativebase and i want to pass a number to my input value but im getting an error that says i cannot pass a number to a string.
<Input keyboardType="numeric" onChangeText={(text) => setTarget(text)} value={target} />
Now if I do this.
<Input keyboardType="numeric" // onChangeText={(text) => setTarget(text)} value={"target"}
The error disappear.This is the definition of the value
const [target, setTarget] = useState<number>(0);