Skip to content

Commit

Permalink
Disable animations for replace/reset (#3741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Aksonov committed Mar 24, 2021
1 parent 0351c33 commit 65574f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function createTabBarOptions({
}
function createNavigationOptions(params) {
const {
type,
cardStyle,
back,
backButtonImage,
Expand Down Expand Up @@ -187,6 +188,7 @@ function createNavigationOptions(params) {
...screenProps,
};
const res = {
animationEnabled: type === ActionConst.REPLACE || type === 'replace' ? false : true,
...props,
cardStyle: navigationParams.cardStyle || cardStyle,
headerBackImage: navigationParams.backButtonImage || backButtonImage,
Expand Down

0 comments on commit 65574f1

Please sign in to comment.