Reputation: 179
Considering a simple example in React Native that uses React Navigation to go to a different screen, how can I disable the transition animation?
<Button
title="Go to Details... again"
onPress={() => navigation.push('Details')}
/>
Upvotes: 0
Views: 4604
Reputation: 1097
have you tried setting "animationEnabled: false"?
check out the docs for it here:
https://reactnavigation.org/docs/en/stack-navigator.html#animationenabled
Upvotes: 0
Reputation: 21
set animationEnabled to false
screen: YourScreenName,
navigationOptions: ({ navigation }) => ({
animationEnabled: false,
}
Upvotes: 0