ptomasroos / react-native-scrollable-tab-view

Tabbed navigation that you can swipe between, each tab can have its own ScrollView and maintain its own scroll position between swipes. Pleasantly animated. Customizable tab bar
https://www.npmjs.com/package/react-native-scrollable-tab-view
6.93k stars 2.29k forks source link

when a flatlist inside the tabview,the flatlist's pullDownToRefresh will not work! #1171

Closed Luckywannnnng closed 2 years ago

Luckywannnnng commented 2 years ago

enviroment; "react-native": "0.65.0", "react-native-scrollable-tab-view": "^1.0.0",

Luckywannnnng commented 2 years ago

I fixed this problem by setting the flatlist's func -> scrollToOffset({offset: 1}), when the follow cases happening:

  1. scrolled to 0px
  2. refreshed and it works for me.