@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.
@@ -141,6 +141,6 @@ repositories {
141
141
  }
142
142
 
143
143
  dependencies {
144
- api "ly.img:camera:1.73.0"
144
+ api "ly.img:camera:1.73.1"
145
145
  implementation "com.facebook.react:react-native"
146
146
  }
@@ -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
- rootViewController.present(presentationController, animated: true, completion: nil)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imgly/camera-react-native",
3
- "version": "1.73.0",
3
+ "version": "1.73.1",
4
4
  "description": "Camera SDK for React Native - provide a versatile video camera to your users on iOS and Android.",
5
5
  "react-native": "index.js",
6
6
  "source": "index.js",