1.5.4 • Published 3 years ago

react-native-hijiri-calendar v1.5.4

Weekly downloads
149
License
-
Repository
github
Last release
3 years ago

Installation

$ yarn add react-native-vector-icons
$ yarn add react-native-hijiri-calendar

Expo Link

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',
  },
});
PropTypedefault
containerStyleStyle{}
headerStyleStyle{}
headerFontStyleStyle{}
fontStyleStyle{}
weekDaysStyleStyle{}
currentDayStyleStyle{}
headerStyleStyle{}
dayNameFontStyleStyle{}
markedDatesTextStyleStyle{}
onPrevFunctionUndefined
onNextFunctionUndefined
onDaySelect,CallbackUndefined
localeString"en"
selectedDatesObject"[]"
iconNextElement
iconPrevElement
calendarTypeString'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