Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add link-assets cli setup guides #2572

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/cli-link-assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ This package is part of the [React Native CLI](../../README.md). It contains com
yarn add @react-native-community/cli-link-assets
```

## Usage

> [!Warning]
> 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.

To enable the command in the CLI, add the following to your `react-native.config.js`:

```js
const linkAssets = require('@react-native-community/cli-link-assets');

module.exports = {
commands: [linkAssets.commands.linkAssets]
};
```

## Commands

### `link-assets`
Expand Down
Loading