File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Icon extends Component {
1616 style = { [ styles . icon , { color } , style ] }
1717 ref = { component => this . _root = component }
1818 >
19- { Icons [ children ] }
19+ { children }
2020 </ Text >
2121 ) ;
2222 }
Original file line number Diff line number Diff line change @@ -32,15 +32,15 @@ Follow this guides for adding FontAwesome.ttf to your projects:
3232
3333# Usage
3434``` javascript
35- import FontAwesome from ' react-native-fontawesome' ;
35+ import FontAwesome , { Icons } from ' react-native-fontawesome' ;
3636
3737...
3838render () {
3939 return (
4040 < View>
4141 < TouchableHighlight>
4242 < Text style= {{margin: 10 , fontSize: 15 , textAlign: ' left' }}>
43- < FontAwesome> key < / FontAwesome>
43+ < FontAwesome> { Icons . chevronLeft } < / FontAwesome>
4444 Text
4545 < / Text >
4646 < / TouchableHighlight>
@@ -58,6 +58,6 @@ Example: `th-large` becomes `thLarge`
5858# Why this is fast, and uses almost no extra memory
5959This package uses the Text element to render Icons. The Text element delegates
6060to the OS the render process of the icons based on the Font file.
61- Both IOS and Android render fonts amazingly fast with little memory overhead. In essence
61+ Both IOS and Android render fonts amazingly fast with little memory overhead. In essence
6262FontAwesome.ttf will be used by the OS to render icons and will benefit of years
6363of native software improvement as well hardware acceleration.
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-fontawesome" ,
33 "description" : " Font Awesome Icons for React Native" ,
4- "version" : " 4 .7.0" ,
4+ "version" : " 5 .7.0" ,
55 "author" : " Rafael Turk" ,
66 "bugs" : {
77 "url" : " https://github.com/rturk/react-native-fontawesome/issues"
You can’t perform that action at this time.
0 commit comments