PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
827 stars 160 forks source link

[bug Android] Tabs Not Rendering When Using lazy in Tabs.Container with react-native-pager-view 6.3.1 #420

Open iy-913 opened 2 weeks ago

iy-913 commented 2 weeks ago

Environment: React Native: 0.74.2 react-native-collapsible-tab-view: 7.0.1 react-native-pager-view: 6.3.1

Description: I encountered an issue where no tabs are rendered when using react-native-collapsible-tab-view with react-native-pager-view version 6.3.1 and enabling the lazy prop in Tabs.Container.

kcadi commented 1 week ago

same issue . Any solution ??

iy-913 commented 1 week ago

Instead of prop lazy for Tabs.Container use Tabs.Lazy like this:

<Tabs.Tab
    name={}
    label={}>
    <Tabs.ScrollView contentContainerStyle={scrollViewStyles}>
        <Tabs.Lazy>
            Tab content
        </Tabs.Lazy>
    </Tabs.ScrollView>
</Tabs.Tab>