PedroBern / react-native-collapsible-tab-view

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

👀[Bug] Chinese tabname is not supported~ #364

Closed A-ANing closed 10 months ago

A-ANing commented 10 months ago
Chinese tabname English tabname

If the "name" of the tab is in Chinese, sliding the content and then switching the tab back to another tab will cause scrolling issues

When tabname is in English, there is no problem

They only differ by name

code :

      <Tabs.Container
        lazy={true}
        renderHeader={() => <View style={{
          paddingVertical: 100,
          alignItems: 'center',
          justifyContent: 'center'
        }}>
          <Text>header view</Text>
        </View>}
      >
        <Tabs.Tab 
          name="全部" // "All"   --No problem with English tabname
        >
          <Tabs.FlatList
            showsVerticalScrollIndicator={true}
            decelerationRate='fast'
            removeClippedSubviews={true}
            maxToRenderPerBatch={50}
            updateCellsBatchingPeriod={1}
            keyboardDismissMode='on-drag'
            style={{ paddingTop: 10 }}
            data={new Array(3).fill(1)}
            renderItem={({ item, index }) => {
              return <View style={{ backgroundColor: index % 2 == 0 ? "green" : "yellow", height: 80 }}></View>
            }}
          />
        </Tabs.Tab>
        <Tabs.Tab
          name="生日" // "Birth"  --No problem with English tabname
        >
          <Tabs.ScrollView>
            {
              new Array(50).fill(1).map((item, index) => <View style={{ backgroundColor: index % 2 == 0 ? "pink" : "blue", height: 100 }}></View>)
            }
          </Tabs.ScrollView>
        </Tabs.Tab>
      </Tabs.Container>

"react": "18.2.0", "react-native": "0.72.3", "react-native-collapsible-tab-view": "^6.2.0", "react-native-pager-view": "^6.2.0", "react-native-gesture-handler": "^2.12.1", "react-native-reanimated": "^3.4.1",

asadsunny14050 commented 10 months ago

What are you saying bro, why CHINESE

Mashnoor123 commented 10 months ago

Wuhan KONTOL!!!!

A-ANing commented 10 months ago

What are you saying bro, why CHINESE

Sorry, I have updated the content of the issue @asadsunny14050

Junstar17 commented 10 months ago

Same issue

A-ANing commented 10 months ago
<Tabs.Tab 
        name='birth'
        label='生日'
        >

Take a look at the document,resolved