From fc91247977c4f001e098f14dd96e1ad349bca5b3 Mon Sep 17 00:00:00 2001 From: Marc Sommerhalder Date: Wed, 30 Nov 2016 13:25:13 +0100 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c81918..fca0975 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,21 @@ dependencies { } ``` +Add the library to your `MainApplication.java`: + +```java +import com.wix.reactnativenotifications.RNNotificationsPackage; + +... + + @Override + protected List getPackages() { + return Arrays.asList( + new MainReactPackage(), + ... + new RNNotificationsPackage(MainApplication.this), +``` + ### Receiving push notifications > This section is only necessary in case you wish to **receive** push notifications in your React-Native app. @@ -582,4 +597,4 @@ The [example app](https://github.com/wix/react-native-notifications/tree/master/ ## License The MIT License. -See [LICENSE](LICENSE) \ No newline at end of file +See [LICENSE](LICENSE) -- 2.26.2