Skip to content

Commit ddc93fa

Browse files
committed
fix: readme
1 parent 75804c2 commit ddc93fa

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ node_modules/
5454
npm-debug.log
5555
yarn-debug.log
5656
yarn-error.log
57+
.npmrc
5758

5859
# BUCK
5960
buck-out/

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,27 @@ allows adding events to native device calendar
44

55
## Installation
66

7-
87
```sh
98
npm 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)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)