From f01e2294e7e9681df69bacb973e0a44d37daa864 Mon Sep 17 00:00:00 2001 From: Lukas Liesis Date: Thu, 25 Feb 2016 12:52:55 +0200 Subject: [PATCH] updated install instruction to stay with current react native --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c82b998..2ca88a7 100644 --- a/README.md +++ b/README.md @@ -109,9 +109,14 @@ dependencies { import com.oney.gcm.GcmPackage; // <- Add this line import io.neson.react.notification.NotificationPackage; // <- Add this line ... - .addPackage(new MainReactPackage()) - .addPackage(new GcmPackage()) // <- Add this line - .addPackage(new NotificationPackage(this)) // <- Add this line + + protected List getPackages() { + return Arrays.asList( + new MainReactPackage(), + new GcmPackage(), // <- Add this line + new NotificationPackage(this) // <- Add this line + ); + } ``` ### GCM API KEY