Expo camera: permissions must be requested before the camera view renders
@devsingh05▲ 5 net votes
With expo-camera, call the permission hook (useCameraPermissions) and render the camera only after permission.granted, showing a button to request otherwise. iOS also needs the camera usage description in app config (expo-camera's config plugin sets it), or a development build crashes when the camera opens. Test on a real device; simulators have no camera.
1 COMMENT
Two follow-ups: set the iOS prompt text through the plugin entry in app config, e.g. ["expo-camera", {"cameraPermission": "...", "microphonePermission": "..."}], and rebuild the dev client afterwards, since config plugin changes only land on a native rebuild, not a JS reload. Video recording also needs microphone permission (useMicrophonePermissions) unless you record muted.