We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTL Swipe Not Working
The text was updated successfully, but these errors were encountered:
Same Issue
Sorry, something went wrong.
PR is welcome
@RichardLindhout Thanks for the great package.
The active tab's underline indicator is missing when testing in RTL (Right-to-Left) mode.
I did a quick check; I think the issue relates to how the translateX property is calculated.
translateX
// get the total width of the tabs const totalWidth = childrenA.reduce((acc, __, i) => { const cl = currentLayout?.[i]; return cl ? acc + cl.width : acc; }, 0); const getTranslateX = (i: number) => { const cl = layouts.current?.[i]; if (!cl) { return 0; } if (I18nManager.isRTL) { const rtlX = Math.floor(totalWidth) - (cl.x + cl.width); return -(rtlX + cl.width / 2) / cl.width; } return (cl.x + cl.width / 2) / cl.width; };
Could you please take a look 🙏
No branches or pull requests
Bug
RTL Swipe Not Working
Preview
My Environment
The text was updated successfully, but these errors were encountered: