I have created a react-native project using "expo init." I want to use RNCamera, but I am getting the following error. "Possible Unhandled Promise Rejection(id:0): Error: Tried to use permissions API but the host Activity doesn't implement PermissionAwareActivity." The problem is, all of the help online seems to point to java files that don't exist in a project created with "expo init". I am trying to build a cross-platform app. Can someone please help me out as to how to do this? I'm not sure where to start since most of the help I believe is geared towards android apps.
I have tried searching the internet but have only found android-specific solutions that require editing java files that aren't in my project.
/*I don't think I have permission to upload pictures yet, but here is a list of the files in my created project.
.expo
.git
assets
node_modules
.gitignore
.watchmanconfig
App.js
app.json
babel.config.js
package.json
yarn.lock
*/
import React, {PureComponent} from 'react';
import { View, Text, Button, StyleSheet, TouchableOpacity } from 'react-native';
import { RNCamera } from 'react-native-camera';
export default function App() {
return (
<View style = {{flex: 1}}>
<RNCamera
ref={ref => {
this.camera = ref;
}}
style = {{flex: 1, width: '100%'
}}
>
</RNCamera>
</View>
);
}
I just want to be able to access the camera. Thanks for your help!!