henninghall / react-native-date-picker

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

Open idanlevi1 opened 3 weeks ago

idanlevi1 commented 3 weeks ago

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