react-native – 反应本机图标
有人尝试使用反应本机图标?我按照这些步骤:
> npm install react-native-icons @ latest –save 我的代码 var React = require('react-native'); var Icon = require('FAKIconImage'); var { AppRegistry,StyleSheet,Text,View} = React; class BringgersApp extends React.Component { constructor(props) { super(props); } render() { return( <View style={styles.container}> <Text style={styles.welcome}> Welcome to Bringgers! </Text> <Icon name='ion|beer' size={150} color='#887700' style={styles.beer} /> </View> ) } } var styles = StyleSheet.create({ container: { flex: 1,justifyContent: 'center',alignItems: 'center',backgroundColor: '#F5FCFF',},welcome: { fontSize: 20,textAlign: 'center',margin: 10,instructions: { textAlign: 'center',color: '#333333',marginBottom: 5,}); React.AppRegistry.registerComponent('BringgersApp',function() { return BringgersApp }); 我建立后,他说该文件不存在… Font file doesn't exist 我清理DerivedData并尝试构建很多次,但不起作用.
首先, >反馈 – 本土图标的维护者指向较新的&维持react-native-vector-icons 换句话说,你的生活可以像打字一样简单 react-native install react-native-vector-icons react-native link react-native-vector-icons 你可能会很好* * *)至少它在我的机器上工作 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- ruby-on-rails-3 – Rails 3 CMS博客想要适应现有网站.不引
- 华为跨二层交换机vlan通信 for hybrid
- 如何在iPhone Twitter应用程序(MGTwitterEngine)上进行RETW
- DWR HelloWorld第一步
- c# – using子句中的隐式变量是否会被垃圾收集?
- 使用c创建新的Windows注册表项
- Oracle启动监听报错:The listener supports no services解
- C# 实现对PPT文档加密、解密及重置密码的操作方法
- 解决sqlite3.DatabaseError: file is encrypted or ...
- IE9 ajax缓存清除不了