I'm using ReactNative's new List component - FlatList.
It seems like FlatList renders all items at once even though the cell isn't actually visible on the screen.
<FlatList data={this.props.items}
keyExtractor={(item, index) => generateKey()}
renderItem={this.renderStrip}/>
renderItem = ({item}) => {
console.warn('rendered!');
return <View style={{height:200, height: 100}} />
}
Setting 30 items and seems like 'rendered' warning was called according to the total number of the items.
I thought FlatList is similar to the way RecycleView in Android works, render an item only when it's about to be visible on the screen.
Am I missing something? Won't it decrease performance?
I wished it could render an item only when it's about to be shown.