skip to Main Content

How can i get Number in onChangeText in React Native

I have created a userInput in React Native const [first_name, setFirstName] = useState(""); (<View style={styles.InputContainer}> <Text>Fisrt Name</Text> <TextInput value={first_name} onChangeText={(text) => setFirstName(text)} placeholder="John" style={styles.textInput} /> </View>;) and first_name is a string and I have another field for which I want…

VIEW QUESTION
Back To Top
Search