web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
674 stars 176 forks source link

RTL Support #432

Open HamoBoker opened 2 weeks ago

HamoBoker commented 2 weeks ago

Current behaviour

Hi

First of all thanks a lot for your great work i really appreciate it.

i have issue when switching the app to RTL and opening DatePickerModal the dates doesn't appear and stays empty, on LTR everything works properly.

Thank you in advance

Expected behaviour

Dates appear

How to reproduce?

// index.js
import {I18nManager} from 'react-native'
import {ar, registerTranslation} from 'react-native-paper-dates'

registerTranslation('ar', ar)
I18nManager.allowRTL(true)
I18nManager.forceRTL(true)

open date picker modal

Preview

drawing

Your Environment

software version
ios 18.1
android 13
react-native 0.75.4
react-native-paper 5.12.5
node 20
github-actions[bot] commented 2 weeks ago

Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.

iM-GeeKy commented 2 weeks ago

PRs are welcome!