import React, {useState} from 'react'; import {StyleSheet, Text, View, TextInput} from 'react-native'; export default function App1() { const [name, setName] = useState('shaun'); const [age, setAge] = useState('30'); return( Enter name: setName(val)}/> Enter age: setAge(val)}/> name: {name}, age: {age} ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, input: { borderWidth: 1, borderColor: '#777', padding:8, margin:10, width:200, } });