Skip to content

Commit

Permalink
Update ModalDismissedEvent interface
Browse files Browse the repository at this point in the history
modalsDismissed was missing from event declaration. This obscure property represents the number of modals which were dismissed. When dismissModal is called it's 1 and when dismissAllModals is called, it's the number of modals which were visible on screen.
  • Loading branch information
guyca committed Dec 9, 2019
1 parent fd24add commit 0823a2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/interfaces/ComponentEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export interface ComponentEvent {

export interface ComponentDidAppearEvent extends ComponentEvent {
componentName: string;
passProps?: object
passProps?: object;
}

export interface ComponentDidDisappearEvent extends ComponentEvent {
Expand All @@ -17,6 +17,7 @@ export interface NavigationButtonPressedEvent extends ComponentEvent {

export interface ModalDismissedEvent extends ComponentEvent {
componentId: string;
modalsDismissed: number;
}

export interface SearchBarUpdatedEvent extends ComponentEvent {
Expand Down

0 comments on commit 0823a2c

Please sign in to comment.