This package is part of the React Native CLI. It contains utilities for autolinking on Android platform.
yarn add @react-native-community/cli-config-android
This package is intended to be used internally in React Native CLI and by out of tree platforms.
cli-config-android
exports utilities to create OOT platform config for autolinking.
-
getProjectConfig()
- creates project config for given platform -
getDependencyConfig()
- creates dependency config for given platform
Example (<oot-platform>/packages/react-native/react-native.config.js
):
platforms: {
android: {
projectConfig: getProjectConfig(),
dependencyConfig: getDependencyConfig(),
},
..
},