Skip to content
New issue

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

Feature Request: Custom Alignment for Date Picker Title (RTL/LTR Support) #855

Open
idanlevi1 opened this issue Sep 4, 2024 · 0 comments

Comments

@idanlevi1
Copy link

My app supports both LTR (English) and RTL (Hebrew) languages. I’ve encountered an issue where the title alignment inside the date picker is determined by the device's system language settings, which causes a mismatch in alignment when the app's language differs from the system language.

Problem:

  • The app is in Hebrew (RTL), but the device is set to English (LTR).
  • The date picker title aligns according to the device's LTR setting, resulting in an LTR-aligned title in an otherwise RTL app.
  • There's currently no way to programmatically control the title alignment within the date picker to match the app's language setting.

Expected Behavior:
The date picker should allow developers to specify the alignment of the title text (either RTL or LTR) regardless of the device’s system language.
An ideal solution would involve adding a prop (e.g., titleAlignment or titleTextDirection) that can accept values like auto, rtl, or ltr.

Request:
Please consider adding a prop or some configuration to control the title alignment within the date picker. This would greatly help developers who need to support multilingual apps with both LTR and RTL languages.

React Native version: 5.0.7
Platform: Android (the issue may exist on iOS as well, but I've specifically encountered it on Android)
Device: All

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant