This is a barcode scanner example developed with react-native.
- If you gongto create your own project dont forget to install react-native-camera
npm install --save react-native-camera@git+https://[email protected]/react-native-community/react-native-camera.git
- Add permission(for android)
<uses-permission android:name="android.permission.CAMERA" />- Add this code to android/app/build.gradle
android {
...
defaultConfig {
...
missingDimensionStrategy 'react-native-camera', 'general' <-- insert this line
}
}