Installation
If you are using Expo for your project, keep in mind that you need to use a development build to use native modules like @caf.io/react-native-face-liveness
. This is because the managed Expo workflow doesn't include support for custom native libraries outside of the standard Expo SDK. For more information on how to create a development build with Expo, check out the official Expo documentation.
yarn add @caf.io/react-native-face-liveness
# or
npm install @caf.io/react-native-face-liveness
Android
If you're utilizing Expo for your project, be sure to include these lines to your android/build.gradle
.
allprojects {
repositories {
...
maven { url 'https://repo.combateafraude.com/android/release' }
maven { url 'https://raw.githubusercontent.com/iProov/android/master/maven/' }
maven { url 'https://raw.githubusercontent.com/iProov/android/patch912/maven/' }
maven { url 'https://maven.fpregistry.io/releases' }
maven { url 'https://jitpack.io' }
}
}
Java 8 Compatibility
If Java 8 is not enabled, add support to your android/app/build.gradle
:
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
iOS
Open your terminal and change to the ios project directory:
cd ios
In ios project directory, install the SDK along with its dependencies by running the following command:
pod install
Last updated