-
Notifications
You must be signed in to change notification settings - Fork 56
Description
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).