react-native-firework-sdk 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,6 +54,11 @@ class FWNavigatorModule: RCTEventEmitter, FWNavigator {
|
|
|
54
54
|
containerViewController.moduleName = appComponentName
|
|
55
55
|
containerViewController.properties = props
|
|
56
56
|
containerViewController.modalPresentationStyle = .fullScreen
|
|
57
|
+
if presentedVC.modalPresentationStyle == .custom,
|
|
58
|
+
let presentingVC = presentedVC.presentingViewController,
|
|
59
|
+
presentingVC is FireworkVideo.PlayerViewController {
|
|
60
|
+
containerViewController.modalPresentationStyle = .overFullScreen
|
|
61
|
+
}
|
|
57
62
|
|
|
58
63
|
#if DEBUG
|
|
59
64
|
self.sendEvent(withName: FWEventName.LogMessage.rawValue, body: ["message": "[iOS] Present containerViewController \(formatter.string(from: Date()))"])
|
|
@@ -86,8 +91,12 @@ class FWNavigatorModule: RCTEventEmitter, FWNavigator {
|
|
|
86
91
|
if presentedVC.modalPresentationStyle == .custom,
|
|
87
92
|
presentingVC is FireworkVideo.PlayerViewController {
|
|
88
93
|
// For consistency with Android SDK behavior
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
presentedVC.dismiss(animated: false) {
|
|
95
|
+
DispatchQueue.main.async {
|
|
96
|
+
presentingVC.dismiss(animated: true) {
|
|
97
|
+
resolver(true)
|
|
98
|
+
}
|
|
99
|
+
}
|
|
91
100
|
}
|
|
92
101
|
} else {
|
|
93
102
|
presentedVC.dismiss(animated: true) {
|