onViewableItemsChanged does not seem to work when there is a state change in the app. Is this correct?
Seems like it wouldn\'t be very useful if this
Sombody suggest to use extraData
property of Flatlist to let Flatlist notice, that something changed.
But this didn't work for me, here is what work for me:
Use key={this.state.orientation}
while orientation
e.g is "portrait" or "landscape"... it can be everything you want, but it had to change, if the orientation changed.
If Flatlist notice that the key-property is changed, it rerenders.
works for react-native 0.56