Installation

yarn add @caf.io/react-native-document-detector
# or 
npm install @caf.io/react-native-document-detector

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://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

In the Podfile in the iOS folder, add this following sources:

source 'https://github.com/combateafraude/iOS.git'
source 'https://cdn.cocoapods.org'

After editing your Podfile, save it and install the SDK along with its dependencies by running the following command:

pod install

Last updated

Logo

2023 © Caf. - All rights reserved