You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I click "Go to register" it should have only one Register's scene mounted.
Actual behaviour
I got double scenes Register have mount, When you click back Register button then back to Register scene again.
So I'm not sure, Is it a bug or feature?
Steps to reproduce
constHome=(props)=>(<Viewstyle={styles.container}><TextonPress={()=>Actions.register()}>
Go to register
</Text></View>)constRegister=(props)=>(<Viewstyle={styles.container}><Text>Register</Text></View>)constRegister2=(props)=>(<Viewstyle={styles.container}><Text>Register2</Text></View>)exportdefaultApp=()=>(<Routerstyle={styles.container}><Scenekey="root"><Scenekey="home"component={Home}title="Home"/><Stackkey="group1"title="group1"><Scenekey="register"component={Register}title="Register"/><Scenekey="register2"component={Register2}title="Register2"/></Stack></Scene></Router>)
My solution
use Actions.group1() instead of Actions.register()
The text was updated successfully, but these errors were encountered:
zealgt
changed the title
Duplicate scenes when Actions.push to child in Stack or Scene group
Duplicate scene when Actions.push to child in Stack or Scene group
Jul 3, 2018
Version
"dependencies": {
"react": "16.4.1",
"react-native": "0.55.4",
"react-native-router-flux": "4.0.0-beta.31"
},
Expected behaviour
When I click "Go to register" it should have only one Register's scene mounted.
Actual behaviour
I got double scenes Register have mount, When you click back Register button then back to Register scene again.
So I'm not sure, Is it a bug or feature?
Steps to reproduce
My solution
use
Actions.group1()
instead ofActions.register()
The text was updated successfully, but these errors were encountered: