简体   繁体   English

React Native(IOS),如何创建滚动视图?

[英]React Native (IOS), how to create a view that scrolls?

I'm trying to make a simple app that simply lists a bunch of information on the screen. 我正在尝试制作一个简单的应用程序,该应用程序仅在屏幕上列出一堆信息。

Right now the app is just made up of a container View and then Views and Texts inside of it. 现在,该应用程序仅由一个容器View组成,然后由其中的Views和Texts组成。

Once there is enough info on the screen that it fills up the whole screen in the simulator, the other info is hidden - I can't scroll to it. 一旦屏幕上有足够的信息填满了模拟器中的整个屏幕,其他信息就会被隐藏-我无法滚动到该屏幕。

How do I enable scrolling? 如何启用滚动? I've tried fixing the height of the container and also changing it to a ScrollView, both with no luck. 我试过固定容器的高度,并将其更改为ScrollView,但都没有运气。

iAnum在评论中回答了它,我需要将scorllEnabled设置为true。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM