FlatList ScrollView Error on any State Change - Invariant Violation: Changing onViewableItemsChanged on the fly is not supported

前端 未结 7 1540
北荒
北荒 2020-12-31 10:11

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

7条回答
  •  北海茫月
    2020-12-31 10:24

    Remove your viewabilityConfig prop to a const value outside the render functions as well as your onViewableItemsChanged function

提交回复
热议问题