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

This package is mostly discontinued since these APIs are no longer available in the latest Firebase SDKs. To call the Cloud Vision API from your app the recommended approach is using Firebase Authentication and Functions, which gives you a managed, serverless gateway to Google Cloud Vision APIs. For an example Functions project see the vision-annotate-images sample project.

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

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)

Firebase has introduced a custom model downloading API, but the module does not have support for it yet. PRs always welcome!

Support table

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

APIStatus
Custom Model Downloading

Usage

Current no public APIs