Bladeren bron

Update ModalDismissedEvent interface

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.
Guy Carmeli 5 jaren geleden
bovenliggende
commit
0823a2c3ee
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2
    1
      lib/src/interfaces/ComponentEvents.ts

+ 2
- 1
lib/src/interfaces/ComponentEvents.ts Bestand weergeven

@@ -4,7 +4,7 @@ export interface ComponentEvent {
4 4
 
5 5
 export interface ComponentDidAppearEvent extends ComponentEvent {
6 6
   componentName: string;
7
-  passProps?: object
7
+  passProps?: object;
8 8
 }
9 9
 
10 10
 export interface ComponentDidDisappearEvent extends ComponentEvent {
@@ -17,6 +17,7 @@ export interface NavigationButtonPressedEvent extends ComponentEvent {
17 17
 
18 18
 export interface ModalDismissedEvent extends ComponentEvent {
19 19
   componentId: string;
20
+  modalsDismissed: number;
20 21
 }
21 22
 
22 23
 export interface SearchBarUpdatedEvent extends ComponentEvent {