简体   繁体   English

平面列表的项目+滚动中的 React Native+ TextInput 滞后

[英]React Native+ TextInput inside flatlist's item+ scrolls is lagging

I am using Flatlist in that I have used textinput field.我使用的是 Flatlist,因为我使用了 textinput 字段。 While I scroll flatlist, textinput is automatically focussed and scroll is lagging and not working smooth.当我滚动平面列表时,文本输入会自动聚焦,滚动滞后且无法流畅运行。 If I scroll outside the textinputfield, scroll works smooth.如果我在 textinputfield 之外滚动,滚动工作顺利。

any solution?任何解决方案?

in Flatlist mention nestedScrollEnabled, it will handle scrolling for both在 Flatlist 中提到nestedScrollEnabled,它将处理两者的滚动

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

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