react-native-camera icon indicating copy to clipboard operation
react-native-camera copied to clipboard

Camera white when being overlayed

Open michelalbers opened this issue 9 years ago • 3 comments

I use react-community/react-navigation for navigating around my app, which is structured like this:

  • WrapperNavigator (StackNavigator / Modalmode)
    • AppNavigator (TabNavigator)
      • Camera
      • Gallery
    • LoginAndRegistrationNavigator (StackNavigator)
      • Login
      • Registration
        • Step 1
        • Step 2
        • ....

When the user opens the app and is not logged in, the app will redirect to LoginAndRegistrationNavigator/Login. The Camera is the initial view of AppNavigator and will therefore be rendered and visible until the login overlay appears.

The issue: After the user is done with logging in or registration, the camera will not be working / be white. It will work again, after the user taps the switch camera button once.

Is there a way to tell the camera to reinit? Hiding and showing the view does kinda work but is very bad performancewise.

michelalbers avatar Aug 09 '17 20:08 michelalbers

I tried multiple approaches in force resetting the camera but all failed. Any help?

michelalbers avatar Aug 10 '17 17:08 michelalbers

I have encountered this same problem. Anyone that could help me?

ArwaLh avatar Sep 07 '17 10:09 ArwaLh

RCTCamera is deprecated, use RNCamera instead. If this issue still occures, open a new issue please.

SimonErm avatar Sep 23 '18 20:09 SimonErm