Skip to content

when using rtl language tab underline in wrong position  #7348

@elirangoshen

Description

@elirangoshen

Current behaviour

In rtl layout the tabs underline located in wrong position.
I'm using createMaterialTopBarNavigator

Expected behaviour

When using rtl language, the tab underline should be under the tab header/name

Code sample

export const TabStack = createMaterialTopTabNavigator({
  moneyTransfer: { screen: MoneyTransferScreen },
  withdrawal: { screen: WithdrawalScreen },
  pendingRequests: { screen: PendingRequestsScreen },

},
  {
    defaultNavigationOptions: {
      drawerLabel: translate("operations.label"),
    },
    lazy: true,
    tabBarOptions: {
      activeBackgroundColor: color.palette.lightGrey,
      inactiveBackgroundColor: color.palette.lightGrey,
      scrollEnabled: true,
      style: {
        backgroundColor: "#212121",
      },
      indicatorStyle: {
        backgroundColor: color.palette.green,
      },
      labelStyle: {
        width: 200,
      },

    },
    animationEnabled: true,
  })

Screenshots (if applicable)

Screen Shot 2019-04-16 at 5 07 01 PM

What have you tried

didn't tried anything yet as id like to know if there is solution without me need to supply workaround from code

Your Environment

software version
ios 12.2
react-native 0.59.2
react-navigation-tabs 2.1.0
node 11.14.0
yarn 1.15.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions