react-native-simple-router icon indicating copy to clipboard operation
react-native-simple-router copied to clipboard

Set animation for resetToRoute()

Open Antonides opened this issue 9 years ago • 1 comments

For the resetToRoute prop i want to set a custom sceneConfig. This did not work. The resetToRoute animation is like a back button. (page swipes back). Did anyone know how to set the sceneconfig or disable the current animation?

this.props.resetToRoute({ name: "Name", sceneConfig: Navigator.SceneConfigs.FloatFromBottomAndroid, component: Home, });

Antonides avatar May 09 '16 14:05 Antonides

immediatelyResetRouteStack from the Navigator API can do that, unfortunately, it is not integrated.

PRs are welcome, otherwise I'll do it when I'll have time. Thank you for this use case.

charpeni avatar May 30 '16 20:05 charpeni