Blockquote
/ * @flow * /
import React,{Component} from'react'导入{视图,文本,StyleSheet,图片,ScrollView,尺寸图}来自“ react-native”
导出默认类主体扩展组件{渲染(){返回(enter code here
)}}
常量样式= StyleSheet.create({bigView:{flexDirection:'行',flexWrap:'包装'},smallView:{保证金:2,高度:100,宽度:(Dimensions.get('window')。width / 2)-4},myImage:{弹性:1,宽度:空,alignSelf:“拉伸”}})
我用您的样式和可能的结构创建示例。我认为,对于smallView样式,您的高度较小。参见我的示例:https://codesandbox.io/s/react-playground-1z39j