@@ -106,9 +106,9 @@ For fonts like fontawesome6-pro, fontello and icomoon where you provide the font
106106You can either use one of the bundled icons above or roll your own custom font.
107107
108108``` js
109- import Icon from " @react-native-vector-icons/fontawesome" ;
109+ import { FontAwesome } from " @react-native-vector-icons/fontawesome" ;
110110
111- < Icon name= " rocket" size= {30 } color= " #900" / > ;
111+ < FontAwesome name= " rocket" size= {30 } color= " #900" / > ;
112112```
113113
114114### Props
@@ -144,13 +144,13 @@ By combining some of these you can create for example :
144144Some fonts today use multiple styles, FontAwesome 6 for example, which is supported by this library. The usage is pretty much the same as the standard ` Icon ` component:
145145
146146``` jsx
147- import Icon from " @react-native-vector-icons/fontawesome5" ;
147+ import { FontAwesome5 } from " @react-native-vector-icons/fontawesome5" ;
148148
149- < Icon name= " comments" size= {30 } color= " #900" / > ; // Defaults to regular
149+ < FontAwesome5 name= " comments" size= {30 } color= " #900" / > ; // Defaults to regular
150150
151- < Icon name= " comments" size= {30 } color= " #900" iconType= " solid" / >
151+ < FontAwesome5 name= " comments" size= {30 } color= " #900" iconType= " solid" / >
152152
153- < Icon name= " comments" size= {30 } color= " #900" iconType= " light" / >
153+ < FontAwesome5 name= " comments" size= {30 } color= " #900" iconType= " light" / >
154154```
155155
156156## Usage as PNG Image/Source Object
@@ -243,20 +243,22 @@ Try the `IconExplorer` project in `Examples/IconExplorer` folder, there you can
243243### Basic Example
244244
245245``` js
246- import Icon from " @react-native-vector-icons/ionicons" ;
246+ import { IonIcons } from " @react-native-vector-icons/ionicons" ;
247247
248- const ExampleView = () => < Icon name= " ios-person" size= {30 } color= " #4F8EF7" / > ;
248+ const ExampleView = () => (
249+ < IonIcon name= " ios-person" size= {30 } color= " #4F8EF7" / >
250+ );
249251```
250252
251253### Inline Icons
252254
253255``` js
254256import { Text } from " react-native" ;
255- import Icon from " @react-native-vector-icons/ionicons" ;
257+ import { IonIcons } from " @react-native-vector-icons/ionicons" ;
256258
257259const ExampleView = (props ) => (
258260 < Text >
259- Lorem < Icon name= " ios-book" color= " #4F8EF7" / > Ipsum
261+ Lorem < IonIcon name= " ios-book" color= " #4F8EF7" / > Ipsum
260262 < / Text >
261263);
262264```
0 commit comments