本文介绍了反应本机溢出和滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开始学习 React Native.据我所知,既有溢出:滚动"样式属性,也有 ScrollView.在 View 中使用overflow:scroll"是否使它成为 React Native 中的 ScrollView?
I started learning React Native. As far as I see, there is both an "overflow:scroll" style property and a ScrollView. Does using "overflow:scroll" in a View make it a ScrollView in React Native?
推荐答案
View 没有 overflow: scroll
属性,文档只显示:
View does not have an overflow: scroll
property, the docs only show:
溢出 ReactPropTypes.oneOf(['visible', 'hidden'])
制作可滚动视图的唯一方法是使用 ScrollView 或 ListView.
The only ways to make a scrollable View are to either use ScrollView or ListView.
这篇关于反应本机溢出和滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!