Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit a775d48

Browse files
authored
Merge pull request #617 from Hanzig/master
Make sure to import PushNotificationIOS from react-native first
2 parents 7347b8e + e4d0512 commit a775d48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public class MainApplication extends Application implements ReactApplication {
203203
## Usage
204204

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

208209
PushNotification.configure({
@@ -211,7 +212,7 @@ PushNotification.configure({
211212
console.log("TOKEN:", token);
212213
},
213214

214-
// (required) Called when a remote or local notification is opened or received
215+
// (required) Called when a remote is received in foreground or opened, or local notification is opened
215216
onNotification: function (notification) {
216217
console.log("NOTIFICATION:", notification);
217218

0 commit comments

Comments
 (0)