Notice: This documentation is currently a work in progress for the upcoming v6 release and some content may be missing or incomplete. If you're not interested in testing out the alpha version of v6 then please click here to be taken to the v5 documentation.

edit  Edit page
message  Send Feedback

Android Manual Linking

The following steps are only required if your environment does not have access to React Native auto-linking.

Add ML Kit Natural Language to Gradle Settings


include ':@react-native-firebase_ml-natural-language'
project(':@react-native-firebase_ml-natural-language').projectDir = new File(rootProject.projectDir, './../node_modules/@react-native-firebase/ml-natural-language/android')

Add ML Kit Natural Language to App Gradle Dependencies


// ..
dependencies {
// ..
implementation project(path: ":@react-native-firebase_ml-natural-language")

Add ML Kit Natural Language to Main Android Application:


// ..
// ..
protected List<ReactPackage> getPackages() {
return Arrays.asList(
new MainReactPackage(),
new ReactNativeFirebaseMLNaturalLanguagePackage(),
// ..