1.5.4 • Published 3 years ago
react-native-hijiri-calendar v1.5.4
Installation
$ yarn add react-native-vector-icons
$ yarn add react-native-hijiri-calendar
Usage
import React, from 'react';
import { StyleSheet, View } from 'react-native';
import { HCalendar } from 'react-native-hijiri-calendar';
export default ({}) => {
return (
<View style={styles.container}>
<HCalendar
onDaySelect={(day) => {
console.log(day);
}}
calendarType="hijiri" //also you can pass gregorian.
selectedDates={[
{
from: '1441/9/1',
to: '1441/9/5',
style: { borderColor: 'blue' },
},
{
from: '1441/9/4',
to: '1441/9/12',
style: { borderColor: 'green' },
},
]}/>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
alignSelf: 'center',
justifyContent: 'center',
alignItems: 'center',
},
});
Prop | Type | default |
---|---|---|
containerStyle | Style | {} |
headerStyle | Style | {} |
headerFontStyle | Style | {} |
fontStyle | Style | {} |
weekDaysStyle | Style | {} |
currentDayStyle | Style | {} |
headerStyle | Style | {} |
dayNameFontStyle | Style | {} |
markedDatesTextStyle | Style | {} |
onPrev | Function | Undefined |
onNext | Function | Undefined |
onDaySelect, | Callback | Undefined |
locale | String | "en" |
selectedDates | Object | "[]" |
iconNext | Element | |
iconPrev | Element | |
calendarType | String | 'hijiri' |
Contributing
Pull requests are very welcome.
1.5.4
3 years ago
1.5.3
3 years ago
1.5.2
4 years ago
1.5.0
4 years ago
1.4.9
4 years ago
1.4.8
4 years ago
1.4.7
4 years ago
1.4.6
4 years ago
1.4.5
4 years ago
1.4.4
4 years ago
1.4.3
4 years ago
1.4.2
4 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.9
4 years ago
1.3.7
4 years ago
1.3.8
4 years ago
1.3.6
4 years ago
1.3.5
4 years ago
1.3.4
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.1
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.1
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.0
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.0.1
4 years ago