-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] App crash after capture #678
Comments
I'm seeing this same error:
since upgrading to [email protected] |
If this is a clue, it happens when I upgraded to the latest react native version which uses the "new architecture". Maybe this has something to do with it: |
I can confirm that this code works with the new architecture (current react-native version is 0.76.1), BUT I was not able to make it switch between old and new architecture:
|
#672 fixed this issue for me. |
Versions
OS: Android 13
React: 18.3.1
React Native: 0.76.1
react-native-camera-kit: 14.0.0
Describe the bug
App crash after capture, Logcat mentions two main errors
getOrCreateModule(): Unable to create module "UIManager" (legacy: false, turbo: true)
and then
java.lang.NullPointerException: null cannot be cast to non-null type com.rncamerakit.CKCamera
at com.rncamerakit.RNCameraKitModule.capture$lambda$0(RNCameraKitModule.kt:70)
on line
val view = uiManager?.resolveView(viewTag) as CKCamera
I believe the main issue is that the UIManager is not created
To Reproduce
Logcat
Crash message
Null pointer at source code
The text was updated successfully, but these errors were encountered: