question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Shamsi (Jalali) calendar type

See original GitHub issue

Feature Request

Why it is needed

There are some other calendar types such as Shamsi (mostly used in Iran and Afghanistan). Currently, there is no complete and fully customizable component for Shamsi type which looks native.

Possible implementation

We can add it to the components (maybe via a calendarType prop. I also found this component for android which i can create a wrapper for it if it’s needed. For iOS, AFAIK, we can customize the locale by locale prop which is already implemented (here) - [Source]

Code sample

<RNDateTimePicker calendarType='shamsi' />

Any ideas?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:11
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
SaeedZhianycommented, Oct 7, 2019

I have submitted a PR to @wdullaer’s library and added Jalali calendar and font support to it. So we no longer need to @mohseneo’ library (I merge his code with wdullaer’s latest code on the master branch and fixed some bugs like force close when screen rotations that exist in Mohseneo’s library as well) and we can use Wdullaer’s library directly after the PR has been merged.

additionally, I added locale support for Jalali calendar (Persian and English locales that are mostly used locales in Iran)

3reactions
SaeedZhianycommented, Sep 18, 2019

I found another library that supports both gregorian and Jalali(shamsi) calendar at the same time. other solution is to replace the whole current android module with this library

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support for Shamsi (Jalali) calendar type #16 - GitHub
I have submitted a PR to @wdullaer's library and added Jalali calendar and font support to it. So we no longer need to...
Read more >
How to set Jalali (Shamsi) as default/alternative calendar
In Excel 2016, now we can set 'Number Format' for 'Date' to be shown as Jalai, by choosing Persian as 'Calendar Type'; Which...
Read more >
java - Integrate two types of Gregorian and solar (shamsi,jalali ...
java - Integrate two types of Gregorian and solar (shamsi,jalali) calendar with each other in calendar view - Stack Overflow. Stack Overflow ...
Read more >
Persian calendar - Moodle plugins directory
This plugin provides Jalali calendar support for Moodle. ... The calendar type system was introduced in 2.6, so this will not work in...
Read more >
Shamsi Calendar in UI for WinForms | Telerik Forums
Hello Milad, Presently RadCalendar does not support Persian calendar. However, this is an interesting feature and I added it in our issue tracking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found