Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman authored Apr 13, 2024
1 parent 215c3e1 commit d3ead7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ Android support is coming soon. Check out [#1](https://github.com/candlefinance/
The following code is used to handle push notifications on the React Native side:

```js
import push from '@candlefinance/push';
import Push from '@candlefinance/push';

// Init
const push = useMemo(() => new Push(), [])

// Shows dialog to request permission to send push notifications, gets APNS token
const isGranted = await push.requestPermissions();
Expand Down

0 comments on commit d3ead7f

Please sign in to comment.