Closed habovh closed 3 years ago
Did you solve this? I'm facing the same issue.
+1 the same to me
I didn't solve this, I ended up using the less advanced react-native-collapsible-segmented-view
by the same author.
Suggesting another library is not ideal but that's actually how I got by, thought it was worth sharing since this issue does not exist on the other lib.
ah guys, using FlatList from react-native-gesture-handler
instead of react-native
works for me
Oh wow.
Now that's unexpected, thanks for the tip!
I'll close this as it seems resolved, if not, let me know.
@andreialecu it's very well not resolved. The currently proposed "fix" implies relying on a third party lib. In my opinion, this either needs to be fixed here RN-collapsible-tab-view, or in React Native itself if horizontal={true}
is properly applied to children scrollviews by RN-collapsible-tab-view.
There's nothing in this library that can cause this behavior directly, so it very likely is a react native bug, so there's nothing we can do here.
react-native-gesture-handler
is a core lib in the community, and it's likely people are going to need it for other things anyway.
See these upstream issues: https://github.com/facebook/react-native/issues/19452 https://github.com/facebook/react-native/pull/19612
Current behavior
I'm in the situation where I need to use an horizontal
<FlatList />
as a child of<Tabs.ScrollView />
.As it turns out, the
horizontal
prop appears to be ignored and my items are ending up being stacked vertically instead of horizontally as expected.Expected behaviour
I'm expecting to be able to use
<FlatList horizontal />
(or anyVirtualizedList
really) along with<Tabs.ScrollView />
.Code sample
Screenshots
<FlatList horizontal />
<ScrollView horizontal />
Environment info
react-native: 0.63.3 react-native-collapsible-tab-view: 4.1.0, react-native-reanimated: 2.0.0,