Skip to content

App Crashed when not set sections.data for sectionList #23526

Closed
@hweister

Description

@hweister

🐛 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions