"Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0." -REACT-NATIVE
I have fixed the above issue by adding this line in android/app/build.gradle
android {
...
defaultConfig {
...
missingDimensionStrategy 'react-native-camera', 'general' <-- insert this line
}
}