@imgly/camera-react-native 1.73.0 → 1.73.1
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.
package/android/build.gradle
CHANGED
|
@@ -63,7 +63,15 @@ import UIKit
|
|
|
63
63
|
.first as? UIWindowScene {
|
|
64
64
|
if let rootViewController = windowScene.windows
|
|
65
65
|
.filter(\.isKeyWindow).first?.rootViewController {
|
|
66
|
-
|
|
66
|
+
// Walk up the presentation chain to the topmost view controller.
|
|
67
|
+
// Presenting on a VC that is already presenting another VC silently
|
|
68
|
+
// no-ops in UIKit, which leaves the SDK Promise hanging forever when
|
|
69
|
+
// the host app uses react-native-screens / Expo Router / RN <Modal>.
|
|
70
|
+
var topViewController: UIViewController = rootViewController
|
|
71
|
+
while let presented = topViewController.presentedViewController {
|
|
72
|
+
topViewController = presented
|
|
73
|
+
}
|
|
74
|
+
topViewController.present(presentationController, animated: true, completion: nil)
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
77
|
}
|
package/package.json
CHANGED