File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ node_modules/
5454npm-debug.log
5555yarn-debug.log
5656yarn-error.log
57+ .npmrc
5758
5859# BUCK
5960buck-out /
Original file line number Diff line number Diff line change @@ -4,26 +4,27 @@ allows adding events to native device calendar
44
55## Installation
66
7-
87``` sh
98npm install react-native-add-calendar react-native-nitro-modules
109
1110> ` react-native-nitro-modules` is required as this library relies on [Nitro Modules](https://nitro.margelo.com/).
1211```
1312
14-
1513## Usage
1614
17-
1815``` js
19- import { multiply } from ' react-native-add-calendar' ;
16+ import { addEvent } from ' react-native-add-calendar' ;
2017
2118// ...
2219
23- const result = multiply (3 , 7 );
20+ addEvent ({
21+ title: ' My Event' ,
22+ startDate: new Date (),
23+ endDate: new Date (Date .now () + 3600000 ),
24+ location: ' Coffee Shop' ,
25+ });
2426```
2527
26-
2728## Contributing
2829
2930- [ Development workflow] ( CONTRIBUTING.md#development-workflow )
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-add-calendar" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " allows adding events to native device calendar" ,
55 "main" : " ./lib/module/index.js" ,
66 "types" : " ./lib/typescript/src/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments