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

Update packages/icons-react-native/README.md #639

Merged
merged 1 commit into from
Apr 8, 2024
Merged
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
26 changes: 26 additions & 0 deletions packages/icons-react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,37 @@ Ant Design Icons for React Native
yarn add @ant-design/icons-react-native
```


## Linking

<details>
<summary>react-native version < 0.69.0</summary>

```bash
react-native link @ant-design/icons-react-native
```
</details>
<br/>
<details open>
<summary><b>react-native version >= 0.69.0</b> <i>(recommend in all version)</i></summary>
<br/>

- Add assets to your `react-native.config.js` ( If not exist, please create in project’s root directory )

```js
module.exports = {
assets: ['node_modules/@ant-design/icons-react-native/fonts'],
};
```

- Run the [`react-native-asset`](https://github.com/unimonkiez/react-native-asset)'s command and linking + unlinking is automatic

```bash
npx react-native-asset
```
<br/>
</details>


will copy fonts to `ios` and `android` assets folder.

Expand Down