Skip to content

Commit

Permalink
💫 Update: RNIModalPresentationState
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed May 5, 2023
1 parent f713ba1 commit 3af9dfa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public enum RNIModalPresentationState: String, CaseIterable {
};

public var isDismissed: Bool {
self == .DISMISSED;
self == .DISMISSED || self == .INITIAL;
};

// MARK: - Computed Properties - Composite
Expand Down Expand Up @@ -281,6 +281,7 @@ public struct RNIModalPresentationStateMachine {
} else if self.state == .DISMISSED {
// reset
self.wasCancelledDismissViaGesture = false;
self.wasCancelledPresent = false;
self._isInitialPresent = nil;
self._wasCancelledDismiss = false;
};
Expand Down

0 comments on commit 3af9dfa

Please sign in to comment.