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
638 stars 162 forks source link

Issue In the Locale #307

Closed KelisSuthar closed 10 months ago

KelisSuthar commented 10 months ago

Hello When I install the library in react native and run the project on Android or ios it shows me an issue like this [react-native-paper-dates] The locale en is not registered, see README!, key: typeInDate in several keys also on the Android side close and edit icons are not proper these are default icons. Screenshot_1691682598 My library Version is "react-native-paper-dates": "^0.18.13", "react": "18.2.0",

github-actions[bot] commented 10 months 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.

Eprince-hub commented 10 months ago

This reported error doesn't happen in https://snack.expo.dev/ and might also not happen in expo projects. I have the same error, and I am using a bare-bone react native for my project, I strongly believe it is the same with the poster

Screenshot 2023-08-11 at 16 56 33
KelisSuthar commented 10 months ago

Ok I will try to use it Thank for your support @Eprince-hub

Eprince-hub commented 10 months ago

Hey, i am providing a reproduction to the error here in the repo https://github.com/Eprince-hub/react-native-date-picker-error

Steps to reproduce

Clone the repo & cd into project

git clone https://github.com/Eprince-hub/react-native-date-picker-error.git && cd react-native-date-picker-error

Install all Dependencies

yarn init-deps

Start & run both ios & android

yarn start-all

Click on pick single date and see the error There is a total of ten errors, clicking on dismiss will reveal next error

Eprince-hub commented 10 months ago

@KelisSuthar Have you found a solution to the error?, if not maybe you can open the issue again?, my comment above wasn't a solution, i was explaining the project where the error is happening

RichardLindhout commented 10 months ago

Please see the example index.js we register translations https://web-ridge.github.io/react-native-paper-dates/docs/intro#register-translation