Jump to top
Icon

ML

Installation and getting started with ML.

Installation

This module requires that the @react-native-firebase/app module is already setup and installed. To install the "app" module, view the Getting Started documentation.

# Install & setup the app module
yarn add @react-native-firebase/app

# Install the ml module
yarn add @react-native-firebase/ml

# If you're developing your app using iOS, run this command
cd ios/ && pod install

If you're using an older version of React Native without autolinking support, or wish to integrate into an existing project, you can follow the manual installation steps for iOS and Android.

What does it do

ML makes use of Firebase Machine Learning's Text Recognition, Image Labeling & Landmark Recognition features.

All Firebase ML services are cloud-based, with on-device APIs handled by the new, separate Google MLKit (Usable in react-native as a set of react-native-mlkit modules)

Support table

The table below outlines the current module support for each available service, and their support status here

APICloud Model
Text Recognition
Document Text Recognition
Image Labeling
AutoML Vision Edge
Object Detection/Tracking

Usage

To get started, you can find the documentation for the individual ML Kit services below: