({ navigation, route })
| 6 | const Root = createStackNavigator() |
| 7 | |
| 8 | const Screen1 = ({ navigation, route }) => ( |
| 9 | <View style={styles.screen}> |
| 10 | <Text style={styles.title}>Screen 1</Text> |
| 11 | <Button |
| 12 | title="Go to Screen 2" |
| 13 | onPress={() => { |
| 14 | navigation.push('Screen2') |
| 15 | }} |
| 16 | /> |
| 17 | </View> |
| 18 | ) |
| 19 | |
| 20 | const Screen2 = ({ navigation, route }) => ( |
| 21 | <View style={styles.screen}> |
nothing calls this directly
no outgoing calls
no test coverage detected