- react-native在Anroid真机运行时可能会遇到白屏的情况解决办法
解决方案 - Image 加载数组中的图片路径问题
require(imgList[i]) 会报错。
解决方案
addChildView() {
var allChild = [];
var imgList=[require('./img/img_01.png'),require('./img/img_02.png'),require('./img/img_03.png'),require('./img/img_04.png'),require('./img/img_05.png')];
var colors = ['red', 'blue', 'green', 'yellow', 'pink'];
for (var i = 0; i < 5; i++) {
allChild.push(
<View key={i} >
<Image source={imgList[i]} style={{width:width, height:120}}></Image>
</View>
);
}
return allChild;
}
3.WebStorm里面配置运行React Native的方案
4.安卓软键盘弹起布局上移问题。
在最外层添加 ScrollView
设置里边view 为屏幕高度(减去状态栏高度)
5.React Native之ListView实现九宫格效果
遇到 listview 不换行的问题
ListView实现九宫格效果
listViewStyle:{
// 改变主轴的方向
flexDirection:'row',
// 多行显示
flexWrap:'wrap',
alignItems:'center',
},
alignItems:’center’ ,这个是属性不能少 ,缺少不会换行。
4.解决react native使用fetch函数在ios9报network request failed的问题
5.ProcessException:
java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:错误
6 . react-native-tab-navigator使用教程
7. react-native android 下打包过程
android 下打包过程