Skip to content

Commit

Permalink
Merge pull request #617 from Hanzig/master
Browse files Browse the repository at this point in the history
Make sure to import PushNotificationIOS from react-native first
  • Loading branch information
Dallas62 authored May 8, 2020
2 parents 7347b8e + e4d0512 commit a775d48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ public class MainApplication extends Application implements ReactApplication {
## Usage

```javascript
import PushNotificationIOS from "@react-native-community/push-notification-ios";
var PushNotification = require("react-native-push-notification");

PushNotification.configure({
Expand All @@ -211,7 +212,7 @@ PushNotification.configure({
console.log("TOKEN:", token);
},

// (required) Called when a remote or local notification is opened or received
// (required) Called when a remote is received in foreground or opened, or local notification is opened
onNotification: function (notification) {
console.log("NOTIFICATION:", notification);

Expand Down

0 comments on commit a775d48

Please sign in to comment.