Commit fc912479 authored by Marc Sommerhalder's avatar Marc Sommerhalder Committed by GitHub

Update README.md

parent 5c8025be
......@@ -90,6 +90,21 @@ dependencies {
}
```
Add the library to your `MainApplication.java`:
```java
import com.wix.reactnativenotifications.RNNotificationsPackage;
...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment