0

I'm developing a video recording app in React Native and I'm using 'react-native-camera' package. Of course, I used RNCamera and the thing is it's fine in android but crashes in iOS. When I open the screen where RNCamera is used, the app just crashes and turn off. I can't get information why this issue occurs. If anyone has experience with this problem, I beg your help. Thank you.

"react": "16.9.0",
"react-native": "0.61.5",
"react-native-camera": "3.15.0"

<RNCamera
    ref={ref => {
        this.camera = ref;
    }}
    style={{ flex: 1 }}
    type={RNCamera.Constants.Type.front}
/>
Andrew Terex
  • 341
  • 2
  • 4
  • 10

1 Answers1

1

key to me was to follow that part of the instructions: You may also need to reset your simulator data after adding those permissions Device -> Erase All Content and Settings... It then stopped crashing the simulator on iOS

Marek
  • 51
  • 4