react-native-year-calendar
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

React Native Year Calendar

npm npm npm Twitter Follow

Install

npm install react-native-year-calendar --save

or

yarn add react-native-year-calendar

Minimal Example

Check here a example

import { StyleSheet, ScrollView } from 'react-native';
import { Calendar } from 'react-native-year-calendar';

export default function App() {
  return (
    <ScrollView style={{flex:1}}>
      <Calendar clickDay={(day) => { console.log("Press day", day)}} events={[]} />
    </ScrollView>
  );
}

Params for Calendar

Param Description Default Required
events Event array [] Y
year Year to show on calendar Current N
months Array of months [0....11] N
style Style for all calendar {} N
clickDay Function fired when click on day false N

Events Object

key type
id number
key string
color string
data any
style StyleProp

ToDo

  • Documentation

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-year-calendar

Weekly Downloads

4

Version

0.0.5

License

MIT

Unpacked Size

10.2 kB

Total Files

12

Last publish

Collaborators

  • danielriera