The*_*oul 10 font-awesome react-native
在我的react-native应用程序中,我添加了这个库react-native-vector-icons来使用图标.在github页面中,FontAwesome列在捆绑的图标集中.但我不知道如何在我的元素中引用一个fontawesome项目.似乎我只能使用"ios-xxx","md-xxx"或"log-xxx".
当我尝试这样的事情:
<Icon name='fa-rss' style={{marginRight:10}} />
Run Code Online (Sandbox Code Playgroud)
我收到这个警告:
Ahm*_*Ali 24
使用
import Icon from 'react-native-vector-icons/FontAwesome';
<Icon name="rss" size={30} color="#900" />
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
12048 次 |
最近记录: |