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