- clone this repo
- go to project directory in terminal
- run $$ npm install
- after installing nodemodules run below command in project directory $$ npx react-native run-android or $$ npx react-native run-ios $$
- Incase metro not started automatically then run below command in project directory $$ npx react-native start
1.The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher. reference -mrousavy/react-native-vision-camera#1449
How to solve - go to path ==> node_modules/react-native-vision-camera/android/gradle.properties --> change VisionCamera_kotlinVersion=1.5.30 to VisionCamera_kotlinVersion=1.6.20
- App may get crash in some Realme devices when using Camer reference- mrousavy/react-native-vision-camera#907
How to solve - go to path ==> android/app/build.gradles --> add below 6 lines in "android/app/build.gradles" inside the "dependencies" script.
implementation "androidx.camera:camera-core:1.1.0" implementation "androidx.camera:camera-camera2:1.1.0" implementation "androidx.camera:camera-lifecycle:1.1.0" implementation "androidx.camera:camera-video:1.1.0" implementation "androidx.camera:camera-view:1.1.0" implementation "androidx.camera:camera-extensions:1.1.0"