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

Update expo installation command to npx expo in docs #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ This plugin is an [Expo Config Plugin](https://docs.expo.dev/guides/config-plugi
## Install

```sh
expo install onesignal-expo-plugin
npx expo install onesignal-expo-plugin
```

**Note:**
@@ -35,7 +35,7 @@ After installing the onseignal-expo-plugin, install now the react-native-onesign
yarn add react-native-onesignal
```

If you frogot to run the following command after you have built your project, you can fix this by running `expo prebuild --clean`. This should delete android and ios and do a clean native build, then run the `yarn add react-native-onesignal`.
If you forgot to run the following command after you have built your project, you can fix this by running `npx expo prebuild --clean`. This should delete android and ios and do a clean native build, then run the `yarn add react-native-onesignal`.

## Configuration in app.json / app.config.js
### Plugin
@@ -108,13 +108,13 @@ OneSignal.setAppId("YOUR-ONESIGNAL-APP-ID");

## Run
```sh
$ expo prebuild
$ npx expo prebuild

# Build your native iOS project
$ expo run:ios
$ npx expo run:ios

# Build your native Android project
$ expo run:android
$ npx expo run:android
```
---