All Projects β†’ MohamadKh75 β†’ React Native Jalali Datepicker

MohamadKh75 / React Native Jalali Datepicker

Licence: mit
πŸ“… React Native Jalali DatePicker component for both Android and iOS ✨

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Jalali Datepicker

react-calendar-datetime-picker
A simple and fast date and time picker component for React
Stars: ✭ 58 (+11.54%)
Mutual labels:  datepicker, persian
Persiandatepicker
An Android DatePicker for Persian Calendar
Stars: ✭ 86 (+65.38%)
Mutual labels:  persian, datepicker
React Modern Calendar Datepicker
A modern, beautiful, customizable date picker for React
Stars: ✭ 555 (+967.31%)
Mutual labels:  persian, datepicker
Persian Date Picker Dialog
Persian Date Picker Dialog for Android
Stars: ✭ 205 (+294.23%)
Mutual labels:  persian, datepicker
PersianDateRangePicker
Select range of date and time in the Persian
Stars: ✭ 41 (-21.15%)
Mutual labels:  datepicker, persian
Vue Persian Datetime Picker
A vue plugin to select jalali date and time
Stars: ✭ 380 (+630.77%)
Mutual labels:  persian, datepicker
Persianrangedatepicker
Persian range date picker for android.
Stars: ✭ 48 (-7.69%)
Mutual labels:  persian, datepicker
React Nice Dates
A responsive, touch-friendly, and modular date picker library for React.
Stars: ✭ 924 (+1676.92%)
Mutual labels:  datepicker
Nhazm
A C# version of Hazm (Python library for digesting Persian text)
Stars: ✭ 35 (-32.69%)
Mutual labels:  persian
Apis Made In Iran
A list of APIs from Iran
Stars: ✭ 835 (+1505.77%)
Mutual labels:  persian
Vue Flatpickr Component
Vue.js component for Flatpickr datetime picker πŸ“†
Stars: ✭ 773 (+1386.54%)
Mutual labels:  datepicker
Vue Datetime
Mobile friendly datetime picker for Vue. Supports date and datetime modes, i18n and more.
Stars: ✭ 928 (+1684.62%)
Mutual labels:  datepicker
Pgdatepicker
ζ—₯ζœŸι€‰ζ‹©ε™¨οΌŒζ”―ζŒεΉ΄γ€εΉ΄ζœˆγ€εΉ΄ζœˆζ—₯γ€εΉ΄ζœˆζ—₯ζ—Άγ€εΉ΄ζœˆζ—₯ζ—Άεˆ†γ€εΉ΄ζœˆζ—₯ζ—Άεˆ†η§’γ€ζœˆζ—₯γ€ζœˆζ—₯ζ—Άγ€ζœˆζ—₯ζ—Άεˆ†γ€ζœˆζ—₯ζ—Άεˆ†η§’γ€ζ—Άγ€ζ—Άεˆ†γ€ζ—Άεˆ†η§’γ€εˆ†η§’γ€ζœˆζ—₯周 ζ—Άεˆ†η­‰
Stars: ✭ 998 (+1819.23%)
Mutual labels:  datepicker
Fasubrip
FaSubrip autodetects and converts encoding of farsi (persian) subrip files. with additional functionalities.
Stars: ✭ 22 (-57.69%)
Mutual labels:  persian
Vue Mj Daterangepicker
πŸ—“Vue.js date range picker with multiples ranges and presets (vue 2.x)
Stars: ✭ 48 (-7.69%)
Mutual labels:  datepicker
Vue Calendar
πŸ† 基于 vue 2.0 εΌ€ε‘ηš„θ½»ι‡οΌŒι«˜ζ€§θƒ½ζ—₯εŽ†η»„δ»Ά
Stars: ✭ 828 (+1492.31%)
Mutual labels:  datepicker
Ganjoor Api
Ganjoor.net REST API
Stars: ✭ 49 (-5.77%)
Mutual labels:  persian
React Dates
React date(range) inputs/pickers
Stars: ✭ 43 (-17.31%)
Mutual labels:  datepicker
React Picky Date Time
A react component for date time picker. Online demo examples
Stars: ✭ 31 (-40.38%)
Mutual labels:  datepicker
Tempus Dominus
A powerful Date/time picker widget.
Stars: ✭ 6,900 (+13169.23%)
Mutual labels:  datepicker

react-native-jalali-datepicker

PRs Welcome   code style: prettier   npm version   DUB


Preview

react-native-jalali-datepicker-example       react-native-jalali-datepicker-example

Install

Package Manager Command
yarn yarn add @mohamadkh75/react-native-jalali-datepicker
npm npm i --save @mohamadkh75/react-native-jalali-datepicker

Usage

import DatePicker from '@mohamadkh75/react-native-jalali-datepicker';

<DatePicker
  style={{
    width: '95%',
    height: '80%',
    alignSelf: 'center',
    backgroundColor: '#1e272e',
    borderWidth: 1,
    borderColor: '#4bcffa',
    borderRadius: 10,
    elevation: 4
  }}
  selected='1399/1/18'
  dateSeparator='/'
  minDate='1398/1/18'
  maxDate='1400/1/18'
  headerContainerStyle={{ height: '15%' }}
  yearMonthBoxStyle={{
    width: '30%',
    height: '75%',
    justifyContent: 'center',
    alignItems: 'center',
    borderWidth: 1,
    borderRadius: 10
  }}
  yearMonthTextStyle={{ fontSize: 22, color: '#4bcffa' }}
  iconContainerStyle={{ width: `${100 / 7}%` }}
  backIconStyle={{
    width: 20,
    height: 20,
    resizeMode: 'center',
    tintColor: '#808e9b'
  }}
  nextIconStyle={{
    width: 20,
    height: 20,
    resizeMode: 'center',
    tintColor: '#4bcffa'
  }}
  eachYearStyle={{
    width: 110,
    height: 82,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#4bcffa',
    marginTop: '1.5%',
    marginBottom: 5,
    marginHorizontal: '1.5%',
    borderRadius: 10,
    elevation: 3
  }}
  eachYearTextStyle={{
    fontSize: 16,
    color: 'white'
  }}
  eachMonthStyle={{
    width: `${88 / 3}%`,
    height: `${88 / 4}%`,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#4bcffa',
    marginBottom: '3%',
    borderRadius: 10,
    elevation: 3
  }}
  eachMonthTextStyle={{ fontSize: 16, color: 'white' }}
  weekdaysContainerStyle={{ height: '10%' }}
  weekdayStyle={{
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center'
  }}
  weekdayTextStyle={{
    fontSize: 16,
    color: '#808e9b',
    marginBottom: 5
  }}
  borderColor='#4bcffa'
  dayStyle={{
    width: `${100 / 7}%`,
    justifyContent: 'center',
    alignItems: 'center',
    aspectRatio: 1 / 1
  }}
  selectedDayStyle={{
    width: '70%',
    aspectRatio: 1 / 1,
    justifyContent: 'center',
    alignItems: 'center',
    borderRadius: 100
  }}
  selectedDayColor='#4bcffa'
  dayTextStyle={{ fontSize: 18 }}
  selectedDayTextColor='white'
  dayTextColor='#4bcffa'
  disabledTextColor='#4bcffa66'
  onDateChange={date => console.warn(date)}
/>;

Properties

Prop Default Type
style see Props.js ViewStyle
selected today string
dateSeparator / string
minDate last year string
maxDate next year string
onDateChange date => console.warn(date) Function
headerContainerStyle see Props.js ViewStyle
yearMonthBoxStyle see Props.js ViewStyle
yearMonthTextStyle { fontSize: 22, color: 'black' } TextStyle
iconContainerStyle see Props.js ViewStyle
backIconStyle see Props.js ImageStyle
nextIconStyle see Props.js ImageStyle
eachYearStyle see Props.js ViewStyle
eachYearTextStyle { fontSize: 16, color: 'white' } TextStyle
eachMonthStyle see Props.js ViewStyle
eachMonthTextStyle { fontSize: 16, color: 'white' } TextStyle
weekdaysContainerStyle see Props.js ViewStyle
weekdayStyle see Props.js ViewStyle
weekdayTextStyle { fontSize: 16, color: 'black', marginBottom: 5 } TextStyle
borderColor coral string
dayStyle see Props.js ViewStyle
selectedDayStyle see Props.js ViewStyle
selectedDayColor coral string
dayTextStyle { fontSize: 18 } TextStyle
selectedDayTextColor #FFFFFF string
dayTextColor #111111 string
disabledTextColor #999999 string

Example

Take a look at example:

git clone https://github.com/MohamadKh75/react-native-jalali-datepicker.git

cd example

yarn

react-native run-android

# OR

react-native run-ios

Acknowledgements

I used Vazir font by Saber Rastikerdar in example app!

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].