Skip to content

Crash when search={false} due to invalid stickyHeaderIndices type in FlatList #228

@irfanhsajid

Description

@irfanhsajid

Hi, thanks for the great package.
I found a runtime crash on React Native (Android) when using search={false}.

Error

TypeError: iterator method is not callable
at _createRenderMask -> VirtualizedList

Root cause

In src/SelectDropdown.js, FlatList gets:

stickyHeaderIndices={search && [0]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions