We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c11540b commit 8744676Copy full SHA for 8744676
1 file changed
BackHandler.android.js
@@ -8,6 +8,7 @@ class BackHandlerAndroid extends React.Component {
8
9
constructor(props) {
10
super(props);
11
+ if (props.navigation.isFocused()) BackHandler.addEventListener('hardwareBackPress', this.onBackPressed);
12
this._willFocusSubscription = props.navigation.addListener('willFocus', payload =>
13
BackHandler.addEventListener('hardwareBackPress', this.onBackPressed)
14
);
0 commit comments