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 80a49aa commit e833a78Copy full SHA for e833a78
components/NavBarContainer.js
@@ -1,7 +1,7 @@
1
import React from 'react';
2
import PropTypes from 'prop-types';
3
import {
4
- BackAndroid,
+ BackHandler,
5
Platform,
6
StyleSheet,
7
Text,
@@ -68,7 +68,7 @@ class NavBarContainer extends React.Component {
68
69
componentDidMount() {
70
if (Platform.OS === 'android' && !!this.props.handleBackAndroid) {
71
- BackAndroid.addEventListener('hardwareBackPress', () => {
+ BackHandler.addEventListener('hardwareBackPress', () => {
72
if (this.props.currentRoute.index > 0) {
73
this.goBack();
74
return true;
@@ -89,7 +89,7 @@ class NavBarContainer extends React.Component {
89
90
componentWillUnmount() {
91
92
- BackAndroid.removeEventListener('hardwareBackPress');
+ BackHandler.removeEventListener('hardwareBackPress');
93
}
94
95
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments