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

Tabs clicks not work #39

Closed anastely closed 2 years ago

anastely commented 2 years ago

There's an issue when trying to click on any tab it seems not to respond!

Tested on iOS.

Code Sample - snack


<Tabs
        uppercase={false}
        style={{backgroundColor: '#eee'}}
        showTextLabel={true}
        theme={{
          colors: {
            primary: text_color_active,
          },
        }}
        showLeadingSpace={false}
        mode="scrollable">
        {sectionData.map(tab => {
          return (
            <TabScreen label={tab.title}>
              <FlatList
                style={{flex: 1}}
                renderItem={renderProductsItems}
                data={tab.data}
                keyExtractor={item => item.id.toString()}
              />
            </TabScreen>
          );
        })}
      </Tabs>

Packages

"react-native-pager-view": "^5.4.11",
"react-native-paper": "^4.11.2",
"react-native-paper-tabs": "^0.7.0",

https://user-images.githubusercontent.com/24620979/156515654-30128bb2-01b9-4747-8830-8240cf819328.mov

anastely commented 2 years ago

UH 😐 It's not related to this package. old issue in react-native-tab-view :)

for anyone who faced the same this PR works for me

I will close it :)