Tab indicator is not lining up with non-index 0 tab items.
The tab indicator to be properly positioned.
I tried but couldn't get the example working on Snack. Key piece of info is if the tab bar has to scroll horizontally to get to the initial index the indicator is in the incorrect place. It ends up where the tab item would be before scrolling to the center. This code produces the screenshot below on load.
state = {
index: 2,
routes: [
{ key: "stepOne", title: "Step One" },
{ key: "stepTwo", title: "Step Two" },
{ key: "stepThree", title: "Step Three" },
{ key: "stepFour", title: "Step Four" }
],
};
I'm using auto width as well.

I've tried setting the index dynamically based on a prop, I've tried different Tab components chosen and rendered at runtime like the docs describe. I've tried just hardcoding it like I'm doing in this example.
| software | version
| ---------------------------- | -------
| ios or android |12.4
| react-native |0.59.9
| react-native-tab-view |2.10.0
| react-native-gesture-handler |1.1.0
| react-native-reanimated |1.0.1
| node |12.2.0
| npm or yarn |yarn
Hello 馃憢, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.
I'm experiencing the same issue in version: 2.14.0.
I tried with the defaults TabBar and indicator, instead of using my customs, but the result is the same.
Looks like this issue should be open.
Is there anyone who can help with this?
Edited
The problem only happens when tapping the tabs. Swiping between them puts the indicator in the right position.

Same problem here.
Most helpful comment
I'm experiencing the same issue in version: 2.14.0.
I tried with the defaults TabBar and indicator, instead of using my customs, but the result is the same.
Looks like this issue should be open.
Is there anyone who can help with this?
Edited
The problem only happens when tapping the tabs. Swiping between them puts the indicator in the right position.