Class cast exception #5894
Replies: 2 comments 1 reply
-
Hey! Do you still encounter the problem? I can see that you are using very old versions of If you cannot upgrade libraries or you still face the issue after the upgrade, please provide a code snippet which I can use to reproduce the issue. |
Beta Was this translation helpful? Give feedback.
-
Facing same issue react 18.2.0 Exception in native call |
Beta Was this translation helpful? Give feedback.
-
ava.lang.ClassCastException: androidx.camera.view.PreviewView cannot be cast to com.facebook.react.views.view.ReactViewGroup
at com.facebook.react.views.view.ReactClippingViewManager.getChildCount(ReactClippingViewManager.java:19)
at com.facebook.react.uimanager.NativeViewHierarchyManager.dropView(NativeViewHierarchyManager.java:641)
at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.dropView(ReanimatedNativeHierarchyManager.java:368)
at com.facebook.react.uimanager.NativeViewHierarchyManager.dropView(NativeViewHierarchyManager.java:646)
at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.dropView(ReanimatedNativeHierarchyManager.java:368)
at com.facebook.react.uimanager.NativeViewHierarchyManager.dropView(NativeViewHierarchyManager.java:646)
at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.dropView(ReanimatedNativeHierarchyManager.java:368)
at com.facebook.react.uimanager.NativeViewHierarchyManager.manageChildren(NativeViewHierarchyManager.java:499)
at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.manageChildren(ReanimatedNativeHierarchyManager.java:279)
at com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:217)
at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:915)
at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:1026)
at com.facebook.react.uimanager.UIViewOperationQueue.access$2600(UIViewOperationQueue.java:47)
at com.facebook.react.uimanager.UIViewOperationQueue$2.runGuarded(UIViewOperationQueue.java:984)
at com.facebook.react.bridge.GuardedRunnable.run(GuardedRunnable.java:30)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:263)
at android.app.ActivityThread.main(ActivityThread.java:8276)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)
"} {}
react native-0.70.6
"react": "18.1.0",
"react-native-vision-camera":2.15.2,
"react-native-reanimated": "^2.13.0",
"react-native-record-screen": "^0.6.1",
This issue came when im having my own library and that library i have used the document upload functionality.
scenario is record screen and camera is started when library open and when i take photo from choose from library and click on photo after that i'm getting this crash .
Beta Was this translation helpful? Give feedback.
All reactions