A react native QR code scanner based on expo library written in TypeScript.
yarn
expo start
Add NSCameraUsageDescription
key to your Info.plist
:
<key>NSCameraUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to use the camera</string>
Run npx pod-install
after installing the npm package.
This package automatically adds the CAMERA
permission to your app. If you want to record videos with audio, you have to include the RECORD_AUDIO
.
<!-- Added permissions -->
<uses-permission android:name="android.permission.CAMERA" />
<!-- Optional permissions -->
<uses-permission android:name="android.permission.RECORD_AUDIO" />