web-ridge / react-native-paper-tabs

Smooth and fast cross platform Material Design Tabs for React Native Paper
https://reactnativepapertabs.com
MIT License
199 stars 35 forks source link

how to hide specific tabs? #49

Closed cloudeweb closed 1 year ago

cloudeweb commented 1 year ago

hello,

I'd like to show and hide with a switch (not disabled param).

I get this warning 'Cannot read property 'props' of null

<Tabs>
                    {switchDays[0] &&
                        <TabScreen label="Mon">
                            <Wrapper activeTab="Mon" />
                        </TabScreen>
                    }
                    {switchDays[1] &&
                        <TabScreen label="Tue">
                            <Wrapper activeTab="Tue" />
                        </TabScreen>
                    }
</Tabs>

Thanks

RichardLindhout commented 1 year ago

Fixed it, sorry for the late fix!