Skip to content

Commit befb3c3

Browse files
chore: update README
1 parent 8c18a18 commit befb3c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ npm install react-native-msgpack
1111
## Usage
1212

1313
```js
14-
import { multiply } from 'react-native-msgpack';
14+
import { encode, decode } from 'react-native-msgpack';
1515

1616
// ...
1717

18-
const result = await multiply(3, 7);
18+
const result = encode({ hello: 'world' });
19+
const decoded = decode(result);
1920
```
2021

2122
## Contributing

0 commit comments

Comments
 (0)