Say I\'ve navigated through 4 screens in my StackNavigator App and now I want to go back to the first screen. There seems to be three different ways to do this and they do n
Here's a quick fix. This will remove ALL transitions when navigating (forward or backward).
const Nav = StackNavigator({
Screens
},{
transitionConfig,
navigationOptions
});
in transitionConfig add this:
const transitionConfig = () => ({
transitionSpec: {
duration: 0,
timing: Animated.timing,
easing: Easing.step0,
},
})
The transitionConfig is a function that returns an object that overrides default screen transitions. https://reactnavigation.org/docs/navigators/stack