I'm attempting to display the camera feed from the front-facing camera within a <View>
component, but I keep encountering this persistent error. Despite trying to reinstall react-native-camera and utilizing expo-camera, I am running out of solutions.
Code:
import {RNCamera, Camera} from 'react-native-camera'
import { View,Text,Screen,Image } from 'react-native';
import Button from 'apsl-react-native-button';
import React from 'react';
export default function Meeting ({navigation}){
return (
<View style={{
backgroundColor: "#fff",
flex:1,
alignItems: 'center',
justifyContent: 'center'
}}>
<View
style={{
position: 'relative',
left:0,
top:-15,
width:1080,
height:480,
backgroundColor: '#c4c4c4'
}}
>
<RNCamera
style={{ flex: 1, alignItems: 'center' }}
captureAudio={false}
ref={ref => {
this.camera = this.camera.bind(this )
this.camera = ref
}}
/>
</View>
</View>
)
}