Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure to import PushNotificationIOS from react-native first #617

Merged
merged 3 commits into from May 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -199,6 +199,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 @@ -207,7 +208,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