Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

eyousefifar/react-native-jalaali-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

installation:

npm i react-native-jalaali-calendar --save

Usage:

import { Jcalendar, JPicker } from "react-native-jalaali-calendar";
export default class App extends Component {
  render() {
    return (
      <View style={{flex : 1}}>
        <JPicker
          selectedDate={{
            year: 1397,
            month: 6,
            day: 13
          }}
          minYear={1300}
          maxYear={1450}
          getDate={date => {
            console.log(date);
          }}
          dismiss={() => {
            /* do something here */
          }}
        />
        <Jcalendar
          selectedDate={{
            year: 1397,
            month: 12,
            day: 15
          }}
          startYear={1300}
          endYear={1400}
        />
      </View>
    );
  }
}

note: Jcalendar and JPicker use flex as their layout, so user can manage layout more easily

About

react native jalaali calendar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published