Skip to content

[FlatList] Sometimes FlatList rows are rendered, but not displayed until scroll. RN 0.43 #13316

Description

@joonhocho

Description

When using FlatList, rows are not displayed though renderItem is called.
Rows appear immediately when scroll is triggered on the list.

Reproduction Steps and Sample Code

exportdefaultclassListextendsComponent{renderItem({item}){return(<Text>{item}</Text>);}render(){return(<FlatListstyle={{flex: 1,backgroundColor: 'white',}}data={[1,2]}renderItem={this.renderItem}/>);}}

Solution

FlatList should always display its rendered items.

Additional Information

  • React Native version: 0.43.0
  • Platform: iOS
  • Development Operating System: MacOS
  • Dev tools: Xcode

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions