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 250f1d5 commit 792243b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ios/src_library/React Native/RNIModal/RNIModal+Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,16 @@ extension RNIModalState where Self: RNIModal {
modalFocusState: self.modalFocusState.state,
modalFocusStatePref: self.modalFocusState.statePrev,

wasBlurCancelled: self.modalFocusState.wasBlurCancelled,
wasFocusCancelled: self.modalFocusState.wasFocusCancelled,

modalPresentationState: self.modalPresentationState.state,
modalPresentationStatePrev: self.modalPresentationState.statePrev,

isInitialPresent: self.modalPresentationState.isInitialPresent,
wasCancelledDismissViaGesture:
self.modalPresentationState.wasCancelledDismissViaGesture,

isModalPresented: self.modalPresentationState.isPresented,
isModalInFocus: self.synthesizedIsModalInFocus,

Expand Down
6 changes: 6 additions & 0 deletions ios/src_library/React Native/RNIModal/RNIModalData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ public struct RNIModalData: RNIDictionarySynthesizable {
public let modalFocusState: RNIModalFocusState;
public let modalFocusStatePref: RNIModalFocusState;

public let wasBlurCancelled: Bool;
public let wasFocusCancelled: Bool;

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

public let isInitialPresent: Bool;
public let wasCancelledDismissViaGesture: Bool;

public let isModalPresented: Bool;
public let isModalInFocus: Bool;

Expand Down

0 comments on commit 792243b

Please sign in to comment.