File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import PropTypes from 'prop-types' ;
33import {
4- BackAndroid ,
4+ BackHandler ,
55 Platform ,
66 StyleSheet ,
77 Text ,
@@ -68,7 +68,7 @@ class NavBarContainer extends React.Component {
6868
6969 componentDidMount ( ) {
7070 if ( Platform . OS === 'android' && ! ! this . props . handleBackAndroid ) {
71- BackAndroid . addEventListener ( 'hardwareBackPress' , ( ) => {
71+ BackHandler . addEventListener ( 'hardwareBackPress' , ( ) => {
7272 if ( this . props . currentRoute . index > 0 ) {
7373 this . goBack ( ) ;
7474 return true ;
@@ -89,7 +89,7 @@ class NavBarContainer extends React.Component {
8989
9090 componentWillUnmount ( ) {
9191 if ( Platform . OS === 'android' && ! ! this . props . handleBackAndroid ) {
92- BackAndroid . removeEventListener ( 'hardwareBackPress' ) ;
92+ BackHandler . removeEventListener ( 'hardwareBackPress' ) ;
9393 }
9494 }
9595
You can’t perform that action at this time.
0 commit comments