Skip to content

Commit ab8094e

Browse files
committed
docs: update expo guide
1 parent b8ee25b commit ab8094e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/SETUP-EXPO.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Setup guide for Expo Apps
22

3-
> If you use React Native without Expo, please follow [this guide](./SETUP-REACT-NATIVE.md) instead. This guide applies to Expo native apps only.
3+
> If you use React Native without Expo, please follow [this guide](./SETUP-REACT-NATIVE.md) instead. This guide applies to Expo apps only.
44
5-
`react-native-vector-icons` works out of the box with Expo native apps. No additional configuration is required.
6-
7-
For web, see the [web setup guide](./SETUP-WEB.md).
5+
Icon packages from `@react-native-vector-icons` work out of the box with Expo, across all platforms. No additional configuration is required.
86

97
## ⚠️ Important: Avoid Manual Font Duplication
108

11-
> **Note:** For recent versions of `react-native-vector-icons`, you usually do **not** need to add the icon fonts manually via the `expo-font` config plugin. The library automatically handles bundling its fonts for native platforms.
9+
> **Note:** For recent versions of [`@react-native-vector-icons`](https://www.npmjs.com/org/react-native-vector-icons), you do **not** need to add the icon fonts manually via the `expo-font` config plugin. The library automatically handles bundling its fonts for native platforms.
1210
1311
Manually adding icon fonts via the `expo-font` plugin may lead to **duplicate font copies** and iOS build errors such as:
1412

@@ -20,7 +18,7 @@ This issue has been discussed in [issue #1746](https://github.com/oblador/react-
2018

2119
**Only add your own custom fonts** (e.g., brand fonts you provide) in the `expo-font` plugin configuration — not fonts from this library.
2220

23-
### Example: Correct Usage with Custom Fonts Only
21+
### Example: Correct Usage with Custom Fonts Only
2422

2523
```js
2624
module.exports = {
@@ -39,5 +37,5 @@ module.exports = {
3937
}
4038
```
4139

42-
🚫 **Do not add fonts from `node_modules/@react-native-vector-icons/Fonts` unless you have a specific advanced use case.**
40+
🚫 **Do not add fonts from `node_modules/@react-native-vector-icons/some-font` unless you have a specific advanced use case.**
4341
Avoiding this helps prevent build conflicts and ensures smooth integration with Expo and native builds.

0 commit comments

Comments
 (0)