onesignal-expo-plugin
Advanced tools
Comparing version 1.0.0-beta4 to 1.0.0-beta5
{ | ||
"name": "onesignal-expo-plugin", | ||
"version": "1.0.0-beta4", | ||
"version": "1.0.0-beta5", | ||
"description": "The OneSignal Expo plugin allows you to use OneSignal without leaving the managed workflow. Developed in collaboration with SweetGreen.", | ||
"main": "build/withOneSignal.js", | ||
"main": "./app.plugin.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1", |
<h1 align="center">Welcome to onesignal-expo-plugin 👋</h1> | ||
<p> | ||
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0--beta1-blue.svg?cacheSeconds=2592000" /> | ||
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0--beta4-blue.svg?cacheSeconds=2592000" /> | ||
<a href="https://github.com/OneSignal/onesignal-expo-plugin#readme" target="_blank"> | ||
@@ -32,3 +32,3 @@ <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" /> | ||
### Plugin | ||
Add the `withOneSignal.js` file to the [plugin array](https://docs.expo.dev/versions/latest/config/app/): | ||
Add the plugin to the [plugin array](https://docs.expo.dev/versions/latest/config/app/): | ||
@@ -38,3 +38,8 @@ ```json | ||
"plugins": [ | ||
"onesignal-expo-plugin" | ||
[ | ||
"onesignal-expo-plugin", | ||
{ | ||
"mode": "development" | ||
} | ||
] | ||
] | ||
@@ -44,2 +49,18 @@ } | ||
or | ||
```js | ||
export default { | ||
... | ||
plugins: [ | ||
[ | ||
"onesignal-expo-plugin", | ||
{ | ||
mode: process.env.NODE_ENV || "development" | ||
} | ||
] | ||
] | ||
}; | ||
``` | ||
### OneSignal App ID | ||
@@ -46,0 +67,0 @@ Add your OneSignal App ID to your [Expo constants via the `extra` param](https://docs.expo.dev/versions/latest/config/app/): |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103
8695
7
142