takePictureAsync: expected a Camera component #1931
Comments
I was not able to reproduce the error with the code you provided. Can you post the Logcat-Log? |
@SimonErm sure. Here is
|
If it is related somehow I am operating on Linux Mint 18.3 x64. I thought that it is issue of emulator but on my Android phone (Xiaomi Mi6, Android 7.1.1) tap on this button does not makes any errors in logcat even. |
I get this issue also. Specifically when using RNCamera within a stackNavigator component from |
I am also seeing this. My error in logcat is as follows:
Javascript Error:
Some notes in our implementation:
|
Also confirmed this is happening when the camera is the root component in an app with no state. |
I have same issue. App using react-native-navigation library for routing. React-native version 0.57.7.
|
@SimonErm bump. Any news here? |
@jwaldrip Please provide a reproduction repository. |
@n1ru4l extracting this from our app would be a pain. Would you be able to jump on a hangout? |
@n1ru4l pinging again... Can someone help out here. 😢 |
@jwaldrip has funded $100.00 to this issue. See it on IssueHunt |
@jwaldrip I am still not able to reproduce this error. I tried it by using RNCamera as root component and within a modal. On which devices(brand) do this error occure? |
I can write about my devices brands: |
@SimonErm this occurs within the simulator and on every live device we have tried. Any chance you can do a hangout and I can show you the logs of what is happening. |
@jwaldrip do you have a repo on github where we can reproduce this? |
It's on Github, but private. It would take time to extract everything into its own repo. Getting on a screenshare would be the easiest thing... |
I am facing the same issue. Camera is preview is black. I am using react-native-router-flux |
this error only happen on modal? |
@jwaldrip I'm facing the same issue too. Can you jump on a hangout so I can show you my logs. |
same issue. Any Solution ? |
I had this issue and managed to work around it by switching to the Function as Children implementation. I am using camera version 2.9.0, and navigation version 3.8.1. One thing I noticed when attempting to debug the non FaC implementation was that my ref attribute of RNCamera seemed to be undefined. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open. |
Someone has found any solution? PS: I'm using a simulator. Update: in my case, styles was not being passed to the component. Now, it's working. |
Going to close this, feel free to open a new issue with consistent reproduction in case you experience this with the newest version. |
are you guys still facing this? @nosuchip @jwaldrip @Zaporozhec7 |
Bug Report
To Do First
Related Modules
RNCamera
Platforms
Android
Versions
react-navigation: 2.18.2
Description/Current Behaviour
Code below failed on either Android emulator or Android phone in camera click handler
Error message:
Expected Behaviour
Picture taken
Steps to Reproduce
Does it work with Expo Camera?
I don't know.
Additionals
The text was updated successfully, but these errors were encountered: