iRoachie / react-native-material-tabs

Material Design implementation of Tabs
MIT License
121 stars 56 forks source link

Unexpected behavior of tab when Language is Hebrew language (RTL) (iOS) #70

Open dhavalshah60 opened 4 years ago

dhavalshah60 commented 4 years ago

Hello,

I am using the Material tab for my project and here I found unexpected behavior of a tab when I select on any of the tabs also when screen load it will scroll to the last index of a tab when scrollable property is true It automatically the last index. here is a video of it so you could get a proper idea about it. kindly revert me, please.

here is the code that I have used.

<MaterialTabs items={this.state.dashboard.map(item => Strings.t(item.id))} selectedIndex={this.state.selectedTab} uppercase={false} barColor={Colors.brand_white} barHeight={46} scrollable={true} activeTextColor={Colors.text_dark} indicatorColor={Colors.brand_main} inactiveTextColor={Colors.text_light} textStyle={styles.tabText} onChange={this.onChangeTab} />

For your information, this code looks great when changing LTR language (iOS).

Screen Recording 2020-03-11 at 3.50.51 PM.mov.zip

dhavalshah60 commented 4 years ago

Hi there. can I get any update regarding my issue?