Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/commands/OptionsProcessor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ describe('navigation options', () => {
blurOnUnmount: false,
popGesture: false,
modalPresentationStyle: OptionsModalPresentationStyle.fullScreen,
animations: { dismissModal: { alpha: { from: 0, to: 1 } } },
animations: { dismissModal: { content: { alpha: { from: 0, to: 1 } } } },
};
uut.processOptions(options);
expect(options).toEqual({
blurOnUnmount: false,
popGesture: false,
modalPresentationStyle: OptionsModalPresentationStyle.fullScreen,
animations: { dismissModal: { alpha: { from: 0, to: 1 } } },
animations: { dismissModal: { content: { alpha: { from: 0, to: 1 } } } },
});
});

Expand Down
15 changes: 12 additions & 3 deletions lib/src/interfaces/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,11 @@ export interface OptionsAnimationSeparate {
```
*/
waitForRender?: boolean;
/**
* Enable or disable the animation
* @default true
*/
enabled?: boolean;
/**
* Configure animations for the top bar
*/
Expand All @@ -780,7 +785,7 @@ export interface OptionsAnimations {
/**
* Configure the setRoot animation
*/
setRoot?: OptionsAnimationProperties;
setRoot?: OptionsAnimationSeparate;
/**
* Configure what animates when a screen is pushed
*/
Expand All @@ -792,11 +797,15 @@ export interface OptionsAnimations {
/**
* Configure what animates when modal is shown
*/
showModal?: OptionsAnimationProperties;
showModal?: OptionsAnimationSeparate;
/**
* Configure what animates when modal is dismissed
*/
dismissModal?: OptionsAnimationProperties;
dismissModal?: OptionsAnimationSeparate;
/**
* Configure what animates when stack root is changed
*/
setStackRoot?: OptionsAnimationSeparate;
}

export interface OptionsCustomTransition {
Expand Down