Skip to content

Commit 837875c

Browse files
committed
Updated types related to options.animations to match the native code.
1 parent 24a8c53 commit 837875c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

lib/src/interfaces/Options.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,11 @@ export interface OptionsAnimationSeparate {
762762
```
763763
*/
764764
waitForRender?: boolean;
765+
/**
766+
* Enable or disable the animation
767+
* @default true
768+
*/
769+
enabled?: boolean;
765770
/**
766771
* Configure animations for the top bar
767772
*/
@@ -780,7 +785,7 @@ export interface OptionsAnimations {
780785
/**
781786
* Configure the setRoot animation
782787
*/
783-
setRoot?: OptionsAnimationProperties;
788+
setRoot?: OptionsAnimationSeparate;
784789
/**
785790
* Configure what animates when a screen is pushed
786791
*/
@@ -792,11 +797,15 @@ export interface OptionsAnimations {
792797
/**
793798
* Configure what animates when modal is shown
794799
*/
795-
showModal?: OptionsAnimationProperties;
800+
showModal?: OptionsAnimationSeparate;
796801
/**
797802
* Configure what animates when modal is dismissed
798803
*/
799-
dismissModal?: OptionsAnimationProperties;
804+
dismissModal?: OptionsAnimationSeparate;
805+
/**
806+
* Configure what animates when stack root is changed
807+
*/
808+
setStackRoot?: OptionsAnimationSeparate;
800809
}
801810

802811
export interface OptionsCustomTransition {

0 commit comments

Comments
 (0)