Skip to content

Commit b676b5a

Browse files
committed
Tweak wording for vector icons on icons page
1 parent fc72e2c commit b676b5a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

versioned_docs/version-8.x/icons.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,11 @@ Here `icon_name` is the resource name without the file extension. On Android, th
475475

476476
### [React Native Vector Icons](https://github.com/oblador/react-native-vector-icons)
477477

478-
The React Native Vector Icons library provides a large set of icons. However, these icons are rendered using custom fonts, which are not supported in most native navigation components such as tab bars or headers.
478+
The React Native Vector Icons library provides various sets of font icons. Font icons cannot be used directly in most native navigation components such as tab bars or headers. But they can be [rasterized into images](https://github.com/oblador/react-native-vector-icons?tab=readme-ov-file#usage-as-png-imagesource-object) and used with the `type: 'image'` option.
479479

480-
As an alternative, you can [rasterize the icon into an image source](https://github.com/oblador/react-native-vector-icons?tab=readme-ov-file#usage-as-png-imagesource-object). This image can then be used as an icon in such components using the `type: 'image'` option.
480+
To do this, install the appropriate icon package, such as `@react-native-vector-icons/lucide`, then install `@react-native-vector-icons/get-image` and rebuild the app.
481481

482-
First, install the appropriate icon package, such as `@react-native-vector-icons/lucide`, along with `@react-native-vector-icons/get-image`. Then rebuild the app and use `getImageSourceSync` to create the image source:
482+
Now you can use the `getImageSourceSync` to create the image:
483483

484484
```js
485485
import { Lucide } from '@react-native-vector-icons/lucide';

0 commit comments

Comments
 (0)