passing data another screen react native functional components

Solutions on MaxInterview for passing data another screen react native functional components by the best coders in the world

showing results for - "passing data another screen react native functional components"
Brittney
29 Jul 2020
1Screen 1:
2<Button title="Go Next"
3onPress={() => navigation.navigate('SecondPage', { paramKey: userName })} />
4
5Screen 2:
6const SecondPage = ({route}) => {
7	....
8    ....
9    <Text style={styles.textStyle}>
10    	Values passed from First page: {route.params.paramKey}
11  	</Text>
12  	....
13    ....
14}
15