I have tried to implement Camera
in my react-native
application by using react-native-camera
, However it doesn't seem like working. When i run react-native run-android
blank white screen is appearing with out any errors. Here is my code,
import Camera from 'react-native-camera';
<Camera
style={Styles.preview}
aspect={Camera.constants.Aspect.fill}
ref={cam => { this.camera = cam; }}
/>
const Styles = {
preview: {
flex: 1,
justifyContent: 'flex-end',
alignItems: 'center',
}
};