滚动视图不以本机滚动

问题描述 投票:0回答:1

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:“拉伸”}})

react-native react-native-android expo android-scrollview
1个回答
0
投票

我用您的样式和可能的结构创建示例。我认为,对于smallView样式,您的高度较小。参见我的示例:https://codesandbox.io/s/react-playground-1z39j

© www.soinside.com 2019 - 2024. All rights reserved.