Skip to main content

Installation

Prerequisites

Before installing react-native-nitro-inspire-face, you need to have react-native-nitro-modules set up in your project.

Installing the library

Install react-native-nitro-inspire-face through your preferred package manager:

npx expo install react-native-nitro-modules react-native-nitro-inspire-face

Model Package Setup

This library requires model files from the InspireFace SDK to function. The models are available in different packages optimized for various use cases:

  • Pikachu (Default) - Lightweight edge-side models (~15.8MB)
  • Megatron - Mobile and server models (~60.2MB)

Download your chosen model package from the InspireFace Releases page.

Project Configuration

Expo Setup

  1. Add the plugin to your Expo config (app.json, app.config.json or app.config.js):
{
"expo": {
"plugins": [
[
"react-native-nitro-inspire-face",
{
"modelName": "Pikachu" // or "Megatron"
}
]
]
}
}
  1. Place the model package in your project's root directory.

  2. Run the command to copy the model package into both the iOS and Android platforms.

npx expo prebuild

Next Steps

Now that you have installed react-native-nitro-inspire-face and set up the model package, you can start using the library in your project. Check out the Basic Usage guide to learn how to implement face detection and recognition features.