升级到 react-native 0.61 后,我收到了很多这样的警告:
VirtualizedLists should never be nested inside plain ScrollViews with the same orientation - use another VirtualizedList-backed container instead.
我应该使用的另一个 VirtualizedList-backed container
是什么,为什么现在建议不要那样使用?
原文由 David Schilling 发布,翻译遵循 CC BY-SA 4.0 许可协议
如果有人仍在寻找对@Ponleu 和@David Schilling 在这里描述的问题的建议(关于 FlatList 之上的内容),那么这就是我采用的方法:
你可以在这里阅读更多相关信息: https ://facebook.github.io/react-native/docs/flatlist#listheadercomponent
希望它可以帮助某人。 :)