-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi, i'm trying to implement the BackAndroid and it's not working for me. I did with rn-router-flux but with redux i'm having trouble
Is this a feature to implement or isn't nesessary?
This is what i have so far
app/components/ApplicationTabs/index.android.js
class ApplicationTabs extends Component {
constructor(props) {
super(props);
this._handleBackAction = this._handleBackAction.bind(this);
}
componentDidMount() {
BackAndroid.addEventListener('hardwareBackPress', this._handleBackAction);
}
componentWillUnmount() {
BackAndroid.removeEventListener('hardwareBackPress', this._handleBackAction);
}
_handleBackAction() {
if (this.props.onNavigate.index === 0) {
return false;
}
this.props.onNavigate({
type: 'pop',
});
return true;
}
.
.
.
Thanks
Metadata
Metadata
Assignees
Labels
No labels