Skip to content

On change the tab indication colour(Highlighted) does not show for next tab only in RTL ( for HEBREW language) #1147

Open

Description

@saurabh874

Screenshot 2021-06-18 at 08 59 59

Activity

  1. mudassiriqball commented on Oct 13, 2021

    @mudassiriqball

    Same issue here, added some workaround for this to work.
    in node_modules/react-native-scrollable-tab-view/DefaultTabBar.js replace this:

    const translateX = this.props.scrollValue.interpolate({
    inputRange: [0, 1],

    •  (remove this line) outputRange: [0,  containerWidth / numberOfTabs],
      
    •  (add this line) outputRange: [0, I18nManager.isRTL ? -(containerWidth / numberOfTabs):  containerWidth / numberOfTabs],
      

    });

    Use patch-package (https://www.npmjs.com/package/patch-package) to keep this change consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions