We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa9a1fe commit 26ca4b9Copy full SHA for 26ca4b9
App.js
@@ -10,10 +10,9 @@ import { createStackNavigator } from 'react-navigation-stack';
10
11
// NOTE: If you tap the back button, focused works just fine.
12
const Home = withNavigationFocus(({ navigation }) => {
13
- console.warn(navigation.isFocused());
14
return (
15
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
16
- <Text>Home Screen</Text>
+ <Text>Home Screen: {String(navigation.isFocused())}</Text>
17
<Button
18
title="Go to Details"
19
onPress={() => navigation.navigate('Details')}
0 commit comments