-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Getting RCTCameraViewManager cannot be cast to com.facebook.react.uimanager.ViewGroupmanager #165
Comments
Yeah I'm getting this too. |
This seems like a related issue: I think the component needs to be modified to pass in the Activity. |
I'm trying to implement whats in that document, but i dont know what to do with the activity once i get it in to RCTCameraViewManager |
I was able to get the error to go away by changing RCTCameraViewManager from
to
as mentioned here: Working on device testing now to see if it works... |
That seemed to fix the error, but no luck on actually getting it to work. |
Using what you mentioned and added some entries in AndroidManifest.xml
after I got the camera to work. I was checking out a different library and tried to point the dots. |
Just to review.. I still can't get this to work in RN 0.18. Here are the changes I've made so far: Made the changes in the docs to these files: Then attempted these to fix the errors: MainActivity.java
AndroidManifest.xml
Changed RCTCameraViewManager |
Not sure if this will work, but based on the other library (react-native-image-picker), but i added this in my MainActivity.java before the Facebook imports. Its been working on my phone already |
As @ardowz said, my phone and emulator work fine after add |
this is fixed on master
|
Using the example converted to ES6 the code works for iOS but when tried to be used on android, that error message is received.
I'm also using the most current git commit to implement it on android
The text was updated successfully, but these errors were encountered: