We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tell us which versions you are using:
Success handler to work.
const App = () => { return ( <Router> <Scene key="root"> <Scene key="scarlet" component={ScarletScreen} title="Scarlet" initial /> <Scene key="gray" //success='green' onEnter={()=>{Alert.alert("onEnter!")}} success={()=>{Alert.alert("success!")}} component={GrayScreen} title="Gray" /> <Scene key='green' component={GreenScreen} title="Green" /> </Scene> </Router> ); }
Success handler is not working, but onEnter is working. I also tried to pass string(key) to success.
App.js code: const App = () => { return ( <Router> <Scene key="root"> <Scene key="scarlet" component={ScarletScreen} title="Scarlet" initial /> <Scene key="gray" //success='green' onEnter={()=>{Alert.alert("onEnter!")}} success={()=>{Alert.alert("success!")}} component={GrayScreen} title="Gray" /> <Scene key='green' component={GrayScreen} title="Gray" /> </Scene> </Router> ); }
const App = () => { return ( <Router> <Scene key="root"> <Scene key="scarlet" component={ScarletScreen} title="Scarlet" initial /> <Scene key="gray" //success='green' onEnter={()=>{Alert.alert("onEnter!")}} success={()=>{Alert.alert("success!")}} component={GrayScreen} title="Gray" /> <Scene key='green' component={GrayScreen} title="Gray" /> </Scene> </Router> ); }
ScarletScreen.js code: const ScarletScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.gray()}> Scarlet Screen </Text> </View> ); }
const ScarletScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.gray()}> Scarlet Screen </Text> </View> ); }
GrayScreen.js: const GrayScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.green()}> GrayScreen </Text> </View> ); }
const GrayScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.green()}> GrayScreen </Text> </View> ); }
GreenScreen.js: const GreenScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.scarlet()}> GreenScreen </Text> </View> ); }
const GreenScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.scarlet()}> GreenScreen </Text> </View> ); }
The text was updated successfully, but these errors were encountered:
my bad, I was not "truly" returning from onEnter/on.
Sorry, something went wrong.
No branches or pull requests
Version
Tell us which versions you are using:
Expected behaviour
Success handler to work.
const App = () => { return ( <Router> <Scene key="root"> <Scene key="scarlet" component={ScarletScreen} title="Scarlet" initial /> <Scene key="gray" //success='green' onEnter={()=>{Alert.alert("onEnter!")}} success={()=>{Alert.alert("success!")}} component={GrayScreen} title="Gray" /> <Scene key='green' component={GreenScreen} title="Green" /> </Scene> </Router> ); }
Actual behaviour
Success handler is not working, but onEnter is working. I also tried to pass string(key) to success.
Steps to reproduce
App.js code:
const App = () => { return ( <Router> <Scene key="root"> <Scene key="scarlet" component={ScarletScreen} title="Scarlet" initial /> <Scene key="gray" //success='green' onEnter={()=>{Alert.alert("onEnter!")}} success={()=>{Alert.alert("success!")}} component={GrayScreen} title="Gray" /> <Scene key='green' component={GrayScreen} title="Gray" /> </Scene> </Router> ); }
ScarletScreen.js code:
const ScarletScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.gray()}> Scarlet Screen </Text> </View> ); }
GrayScreen.js:
const GrayScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.green()}> GrayScreen </Text> </View> ); }
GreenScreen.js:
const GreenScreen = () => { return ( <View style={styles.container}> <Text style={styles.welcome} onPress={() => Actions.scarlet()}> GreenScreen </Text> </View> ); }
The text was updated successfully, but these errors were encountered: