react-native-collapsible-tab-view
react-native-collapsible-tab-view copied to clipboard
Headers are not collapsed when using Tabs.FlashList.
(Written with machine translation)
Description
When using Tabs.FlashList (and Tabs.MasonryFlashList), the header does not change in any way and does not fold; with Tabs.FlatList and Tabs.ScrollView it works fine and the header folds. In addition, when moving to Tabs.FlashList with the header collapsed in Tabs.FlatList, etc., the height of the Header is maintained, but if the FlashList is scrolled down, a blank space equal to the height of the Header is created.
Steps to reproduce
Fork this repository and run the example app
Video
https://github.com/PedroBern/react-native-collapsible-tab-view/assets/122760705/ef879d51-8b19-4ea3-823a-dd8d6db42a24
+1 same issue.
Same!
can confirm
+1 same issue
same. worked before i updated expo and maybe accidently updated this package
Fixed this by setting react-native-reanimated to exactly 3.8.1 👍
@tomas1808 interesting, I tried this but didn't work. Is this version 7.0.1 of react-native-collapsible-tab-view?
@vbylen My exact configuration is:
"react-native-collapsible-tab-view": "^7.0.1""react-native-pager-view": "^6.2.3""react-native-reanimated": "3.8.1"
@tomas1808 what about react-native-gesture-handler?
@saulamsal "react-native-gesture-handler": "~2.14.0"
Fixed this by setting
react-native-reanimatedto exactly3.8.1👍
Thank you, @tomas1808 !
I am able to solve this by simply changing reaxt-native-reanimated to 3.8.1. Here are the versions of the packages.
"react-native-collapsible-tab-view": "^7.0.1""react-native-pager-view": "^6.3.0""react-native-gesture-handler": "^2.16.0"
I have a feeling that this problem is related to this issue that has been occurring since version 3.9.0 of react-native-reanimated.
@Ucekay Glad it worked for you! Not sure why not everyone is having the same success.
I'll use this moment to promote my own question in case anyone is feeling like giving back 🤣
This package used to work seamlessly with expo. However, after upgrading from expo SDK 50 to SDK 51, the following dependencies were updated:
react-native-reanimated:~3.6.2→3.10.1react-native-pager-view:6.2.3→6.3.0react-native-gesture-handler:2.14.0→2.16.1
Since expo includes specific versions of these packages with each release, manually changing the versions isn't feasible.
I recommend keeping this issue open until it is resolved and the package is compatible with the latest expo SDK 51 (51.0.8 as of May 20th 2024).
@Ucekay I performed the same operation, but there will be version compatibility issues
This package used to work seamlessly with
expo. However, after upgrading fromexpoSDK 50 to SDK 51, the following dependencies were updated:
react-native-reanimated:~3.6.2→3.10.1react-native-pager-view:6.2.3→6.3.0react-native-gesture-handler:2.14.0→2.16.1Since
expoincludes specific versions of these packages with each release, manually changing the versions isn't feasible.I recommend keeping this issue open until it is resolved and the package is compatible with the latest
expoSDK 51 (51.0.8as of May 20th 2024).
In Android Tabs.ScrollView & Tabs.FlatList also not working
Based on this 3.13.0-rc.1 version of Reanimated working fine with all Tabs.ScrollView , Tabs.FlatList & Tabs.MasonryFlashList in both iOS & Android.
Currently my package.json is:
"expo": "^51.0.14","react-native": "0.74.2","react-native-reanimated": "~3.13.0-rc.1","react-native-gesture-handler": "~2.16.1",
@jayan2019 "react-native-reanimated": "3.8.1"
This package used to work seamlessly with
expo. However, after upgrading fromexpoSDK 50 to SDK 51, the following dependencies were updated:
react-native-reanimated:~3.6.2→3.10.1react-native-pager-view:6.2.3→6.3.0react-native-gesture-handler:2.14.0→2.16.1Since
expoincludes specific versions of these packages with each release, manually changing the versions isn't feasible.I recommend keeping this issue open until it is resolved and the package is compatible with the latest
expoSDK 51 (51.0.8as of May 20th 2024).
I have created a patch for version 3.10.1 based on the patch for react-native-reanimated version 3.11.0. This will ensure that the header collapses correctly. However, I am not very familiar with this yet, so please use it at your own risk. (I am not sure if this will be a solution to Expo’s recommendation for specific package versions.)
react-native-reanimated+3.10.1.patch
This was an upstream issue in Reanimated. It should be fixed in Reanimated 3.12.1