Answers for "passing data another screen react native functional components"

0

passing data another screen react native functional components

Screen 1:
<Button title="Go Next"
onPress={() => navigation.navigate('SecondPage', { paramKey: userName })} />

Screen 2:
const SecondPage = ({route}) => {
	....
    ....
    <Text style={styles.textStyle}>
    	Values passed from First page: {route.params.paramKey}
  	</Text>
  	....
    ....
}
Posted by: Guest on September-28-2021

Code answers related to "passing data another screen react native functional components"

Code answers related to "Javascript"

Browse Popular Code Answers by Language