skip to Main Content

Passing function as props in React Native

How can I pass a setter function (useState) as prop using navigation.navigate? I have it set up as the following: const [firstName, setfirstName] = useState(''); const [dob, setDOB] = useState(''); const [medicalConditions, setMedicalConditions] = useState(''); const [allergies, setAllergies] = useState('');…

VIEW QUESTION
Back To Top
Search