From 662a5f932f7fef730062fbefc539e30ced09dc91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=9D=A4?= <1498710037@qq.com> Date: Mon, 8 Apr 2024 18:01:57 +0800 Subject: [PATCH] Update README.md update Linking in react-native version >= 0.69.0 --- packages/icons-react-native/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/packages/icons-react-native/README.md b/packages/icons-react-native/README.md index e87b49624..d97efce11 100644 --- a/packages/icons-react-native/README.md +++ b/packages/icons-react-native/README.md @@ -15,11 +15,37 @@ Ant Design Icons for React Native yarn add @ant-design/icons-react-native ``` + ## Linking +
+react-native version < 0.69.0 + ```bash react-native link @ant-design/icons-react-native ``` +
+
+
+react-native version >= 0.69.0 (recommend in all version) +
+ +- 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 +``` +
+
+ will copy fonts to `ios` and `android` assets folder.