![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react-native
今天不想加油鸭~
爱吃西瓜的孩纸,喜欢学习,也喜欢打游戏的女纸
展开
-
react-native 启动页设置(android)
使用第三方插件:react-native-splash-screen下载地址:https://www.npmjs.com/package/react-native-splash-screen第一步:安装下载插件1、npm i react-native-splash-screen --save2、react-native link react-native-splash-screen...原创 2018-10-11 23:01:54 · 1819 阅读 · 2 评论 -
react-native 启动页设置(ios)
使用第三方插件:react-native-splash-screen下载地址:https://www.npmjs.com/package/react-native-splash-screen第一步:安装下载插件1、npm i react-native-splash-screen --save2、react-native link react-native-splash-screen...转载 2018-10-11 23:18:55 · 2797 阅读 · 0 评论 -
react-native 报错Invalid child context `virtualizedCell.cellKey`.........
问题一: Invalid child context `virtualizedCell.cellKey`.........大致意思就是希望获取到字符串,实际获取到的是数字类型滴解决方法:将_keyExtractor = (item, index) => index转为_keyExtractor = (item, index) => index.toString() ...原创 2018-10-16 11:27:49 · 3099 阅读 · 1 评论 -
react-native自定义返回按钮 headerBackImage
class BackImage extends React.Component { //创建一个返回按钮的组件 render() { return ( <Image source={require('../res/imgs/RightArrow.png')} style={{ width: 8, height: 15}} ...原创 2018-11-01 13:14:53 · 5001 阅读 · 0 评论 -
react-native image 设置默认图片
Image组件的引入图片提供了下面这几种类型:静态图片资源,网络图片资源静态资源引用方式:&amp;lt;Image&amp;gt; source={require('./bunny.png')} style={styles.base}&amp;lt;/Image&amp;gt; 网络图片资源&amp;lt;Image source={{uri: 'https://facebook.github.io/o原创 2018-12-27 14:28:49 · 2471 阅读 · 0 评论