Skip to content

Commit 65574f1

Browse files
author
Pavel Aksonov
committed
Disable animations for replace/reset (#3741)
1 parent 0351c33 commit 65574f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Store.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function createTabBarOptions({
126126
}
127127
function createNavigationOptions(params) {
128128
const {
129+
type,
129130
cardStyle,
130131
back,
131132
backButtonImage,
@@ -187,6 +188,7 @@ function createNavigationOptions(params) {
187188
...screenProps,
188189
};
189190
const res = {
191+
animationEnabled: type === ActionConst.REPLACE || type === 'replace' ? false : true,
190192
...props,
191193
cardStyle: navigationParams.cardStyle || cardStyle,
192194
headerBackImage: navigationParams.backButtonImage || backButtonImage,

0 commit comments

Comments
 (0)