TypeError.undefined 不是对象(正在计算 _reactNativeCamera.RNCamera.constants.also
TypeError.undefined is not an object (evaluating _reactNativeCamera.RNCamera.constants.also
TypeError.undefined 不是对象(计算 _reactNativeCamera.RNCamera.constants.also
//import RNCamera from 'react-native-camera'; // instead of
import { RNCamera } from 'react-native-camera'; //Use this
<View style={styles.container}>
<RNCamera
style={styles.preview}
onBarCodeRead={this.onBarCodeRead}
ref={cam => this.RNCamera = cam}
>
<Text style={{backgroundColor: 'white'}}>BARCODE SCANNER</Text>
</RNCamera>
<View style={styles.bottomOverlay}>
TypeError.undefined 不是对象(计算 _reactNativeCamera.RNCamera.constants.also
//import RNCamera from 'react-native-camera'; // instead of
import { RNCamera } from 'react-native-camera'; //Use this
<View style={styles.container}>
<RNCamera
style={styles.preview}
onBarCodeRead={this.onBarCodeRead}
ref={cam => this.RNCamera = cam}
>
<Text style={{backgroundColor: 'white'}}>BARCODE SCANNER</Text>
</RNCamera>
<View style={styles.bottomOverlay}>