Skip to content

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

@dhavalshah60

Description

@dhavalshah60

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions