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-document-detector. 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.

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