react-native - 如何在反应原生的任何视图上滚动滚动视图?
问题描述
我在它下面有一个视图和滚动视图..而且我需要滚动视图能够滚动到上面的视图..我怎样才能用本机反应来实现?请帮我..
解决方案
ScrollView works only with the specified childs
如果你也想滚动上面的视图,你有两个选择。
Replace that View with ScrollView
(嵌套滚动)。Put your inner ScrollView at root level
并且将使用单个 ScrollView。<View> // Either replace this View with ScrollView. <ScrollView> // Or move this ScrollView to the top. // You content </ScrollView> </View>
推荐阅读
- ios - 数组 .contains() 快速期待抛出的布尔值?
- r - R中春季缺少月份和蓝色阴影的ggplot数据?
- javascript - React.js TypeError:无法读取 null 的属性“地图”
- flutter - 我在 Flutter 中为列表项设置了动画左右滚动效果,但整个列表立即更改?
- javascript - 高性能 Javascript 固定滚动
- python - 当我导入依赖项时,Dash 应用程序停止
- javascript - 与 Messenger 共享的 fb 使用 php 和 javscript 出现“未找到附件”错误
- python - Pickle 没有将数据保存到具有格式化字符串名称的文件中
- c - 扫描值的长度
- python - Python - 两个值之间的模数