Skip to content

Commit 555f7c3

Browse files
committed
use lucide for vector icons example
1 parent bd9c07c commit 555f7c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

versioned_docs/version-8.x/customizing-bottom-tabs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,16 @@ This not supported on Android with `native` [implementation](bottom-tab-navigato
135135

136136
The React Native Vector Icons library provides a large set of icons. To use vector icons in your tab bar, we'd need to [get an image source](https://github.com/oblador/react-native-vector-icons?tab=readme-ov-file#usage-as-png-imagesource-object) from the icon component.
137137

138-
First, make sure to install the appropriate icon package (e.g. `@react-native-vector-icons/material-design-icons`) and `@react-native-vector-icons/get-image` and rebuild the app after installation. Then, you can use the `getImageSourceSync` method to get the image source for the desired icon:
138+
First, make sure to install the appropriate icon package (e.g. `@react-native-vector-icons/lucide`) and `@react-native-vector-icons/get-image` and rebuild the app after installation. Then, you can use the `getImageSourceSync` method to get the image source for the desired icon:
139139

140140
```js
141-
import { MaterialDesignIcons } from '@react-native-vector-icons/material-design-icons';
141+
import { Lucide } from '@react-native-vector-icons/lucide';
142142

143143
// ...
144144

145145
tabBarIcon: {
146146
type: 'image',
147-
source: MaterialDesignIcons.getImageSourceSync('home', 22),
147+
source: Lucide.getImageSourceSync('heart', 22),
148148
},
149149
```
150150

0 commit comments

Comments
 (0)