admin管理员组文章数量:1122832
In my Expo v.52 application, I had a SectionList with several CheckBoxes. When these CheckBoxes are inside a SectionList or FlatList component, they don't react to touch input on iOS, but they do work on the web.
I tried to log the press, but there was no output.
Then I moved the checkbox outside of the SectionList, and it worked there.
Then I migrated to expo-checkbox because I thought it could be a problem with the component I made myself.
I read that it could be due to some issues with the SectionList component, then I migrated to FlatList.
Code example:
<Checkbox
value={!!checkedItems["someID"]}
onValueChange={() => toggleCheckbox("SomeID")}
color={!!checkedItems["someID"] ? '#4630EB' : undefined}
/>
本文标签: typescriptExpo CheckBox doesn39t react to touch on iOS but works on the webStack Overflow
版权声明:本文标题:typescript - Expo CheckBox doesn't react to touch on iOS but works on the web - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736301190a1931094.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论