react-native: React Native this.props.navigator.push can't push a component twice for Navigator
When I use a function like this:
driverCreateTrip: function(){
this.props.navigator.push({
title: "New Trip",
component: DriverCreateAccount,
});
},
, if I have already pushed the DriverCreateAccount component in a previous .js file, then it seems I can’t use the push again, does it mean I have to use pop to get back to where I want to go? I can’t push the same component twice to the stack?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18 (3 by maintainers)
@hedgerwang so it works if I push a component that hasn’t been pushed before, but if I push something already on the stack then it gives me this error