Skip to content

Commit

Permalink
💫 Update: RNIModalData
Browse files Browse the repository at this point in the history
Related:
* `TODO:2023-03-04-13-15-11` - Refactor: Update Modal Events
* `TODO:2023-04-14-23-40-15` - Impl. Update `RNIModalData` - Add more modal-related data.
  • Loading branch information
dominicstop committed Apr 14, 2023
1 parent b6c7ec1 commit 6d97b6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ios/src_library/React Native/RNIModal/RNIModal+Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ extension RNIModalState where Self: RNIModal {
modalPresentationStatePrev: self.modalPresentationState.statePrev,

isInitialPresent: self.modalPresentationState.isInitialPresent,
wasCancelledPresent: self.modalPresentationState.wasCancelledPresent,
wasCancelledDismiss: self.modalPresentationState.wasCancelledDismiss,

wasCancelledDismissViaGesture:
self.modalPresentationState.wasCancelledDismissViaGesture,

Expand Down
4 changes: 3 additions & 1 deletion ios/src_library/React Native/RNIModal/RNIModalData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ public struct RNIModalData: RNIDictionarySynthesizable {

public let modalPresentationState: RNIModalPresentationState;
public let modalPresentationStatePrev: RNIModalPresentationState;

public let isInitialPresent: Bool;
public let wasCancelledPresent: Bool;
public let wasCancelledDismiss: Bool;
public let wasCancelledDismissViaGesture: Bool;

public let isModalPresented: Bool;
Expand Down

0 comments on commit 6d97b6c

Please sign in to comment.