React Native Date Picker is datetime picker for Android and iOS. It includes date, time and datetime picker modes. The datepicker is customizable and is supporting different languages. It's written with native code to achieve the best possible look, feel and performance.
MIT License
2.21k
stars
338
forks
source link
Feature Request: Custom Alignment for Date Picker Title (RTL/LTR Support) #855
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
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:
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