Reputation: 76
I am working in react native with expo and I am trying to implement react native camera. However, when I implement it into my own code and even use this usage code, it shows a blank screen with a loading icon and gives the warning
Unhandled promise rejection: Error: Tried to use permissions API but the host Activity doesn't implement PermissionAwareActivity.
I use expo permissions and get permission for both camera and audio earlier in the app. This issue happens on both android and IOS.
Here is my configuration:
Upvotes: 0
Views: 1574
Reputation: 159
If you are using expo, you won't be able to use native modules like react-native-camera. Instead, you can use expo sdk, they have an expo-camera that you can use. Here is the link: https://docs.expo.io/versions/v36.0.0/sdk/camera/
Upvotes: 0