Add support for Shamsi (Jalali) calendar type
See original GitHub issueFeature 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:
- Created 4 years ago
- Reactions:11
- Comments:11 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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)
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