App Crashed when not set sections.data for sectionList #23526
Labels
Bug
Component: SectionList
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
🐛 Bug Report
For SectionList, if user don't set data field for sections property, app will crash.
To Reproduce
Just as described above, set sections=[{data: undefined},{data: undefined}] for SectionList.
Expected Behavior
Either update the document, notice user data is a "must have" key for section define
or update VirtualizedSectionList.js file, check if section.data is defined, before call section.data.length.
The text was updated successfully, but these errors were encountered: