- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
自从我第一次见到文档以来,ScrollViewProps 或从中派生 Prop 的组件(SectionList、FlatList、VirtualizedList)上可用的这个属性一直困扰着我。
说明只说Enables nested scrolling for Android API level 21+.
但没有更深入地了解 API 21+(或 API < 21)上的实际错误或您需要此属性的实际用例。
我已经在真实的 android 设备上进行了多次测试,并且在所有这些设备上,嵌套滚动(使用 ScrollView 或其他库存组件)都可以正常工作 - 无论是否将此 Prop 设置为 true - 并且在水平和垂直方向。
那么,这个 Prop 究竟有什么作用呢?你能举一个例子说明这个 Prop 有什么用处,或者没有它滚动就不能正常工作吗?
另外,如果我将所有这些滚动组件设置为 true 是否会造成伤害?
最佳答案
NestedScrollView is just like ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. Nested scrolling is enabled by default.
NestedScrollView is when you need a scrollView inside another scrollView
true
它适用于一切。
关于react-native - react 原生 NestedScrollEnabled 做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59828595/
自从我第一次见到文档以来,ScrollViewProps 或从中派生 Prop 的组件(SectionList、FlatList、VirtualizedList)上可用的这个属性一直困扰着我。 说明只
我是一名优秀的程序员,十分优秀!