Skip to content

Commit 9a36a05

Browse files
authored
docs: add link-assets cli setup guides (#2572)
1 parent 23d9a1a commit 9a36a05

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/cli-link-assets/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ This package is part of the [React Native CLI](../../README.md). It contains com
88
yarn add @react-native-community/cli-link-assets
99
```
1010

11+
## Usage
12+
13+
> [!Warning]
14+
> Currently, this command isn’t shipped by default because it uses a legacy method of modifying Xcode and Gradle files. An improved [autolinking-based](./../../docs/autolinking.md) solution is in development. Until then, please use it with caution.
15+
16+
To enable the command in the CLI, add the following to your `react-native.config.js`:
17+
18+
```js
19+
const linkAssets = require('@react-native-community/cli-link-assets');
20+
21+
module.exports = {
22+
commands: [linkAssets.commands.linkAssets]
23+
};
24+
```
25+
1126
## Commands
1227

1328
### `link-assets`

0 commit comments

Comments
 (0)