-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⭐️ Impl: Add
RNIModalPresentationNotifiable
Summary: * Impl: Add `RNIModalPresentationNotifiable`. * Replace `RNIModalFocusNotifying` w/ `RNIModalPresentationNotifying`. * Update `RNIModalManager` - Replace `RNIModalFocusNotifiable` conformance w/ `RNIModalPresentationNotifiable`. * Update `RNIModalView` - Replace `RNIModalPresentationNotifying` conformance w/ `RNIModalPresentationNotifying`.
- Loading branch information
1 parent
1ba88e5
commit fa04652
Showing
4 changed files
with
67 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
ios/src_library/React Native/RNIModal/RNIModalPresentationNotifiable.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// RNIModalPresentationNotifiable.swift | ||
// react-native-ios-modal | ||
// | ||
// Created by Dominic Go on 4/10/23. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol RNIModalPresentationNotifiable: AnyObject { | ||
|
||
func notifyOnModalWillShow(sender: any RNIModal); | ||
|
||
func notifyOnModalDidShow(sender: any RNIModal); | ||
|
||
func notifyOnModalWillHide(sender: any RNIModal); | ||
|
||
func notifyOnModalDidHide(sender: any RNIModal); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters