Skip to content

Commit e8cf165

Browse files
committed
fix setup script
1 parent f5f6356 commit e8cf165

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

examples/RNOneSignalTS/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ First, you will need to run **Metro**, the JavaScript build tool for React Nativ
1313
To start the Metro dev server, run the following command from the root of your React Native project:
1414

1515
```sh
16-
bun i
16+
bun start
1717
```
1818

1919
## Step 2: Build and run your app
@@ -44,14 +44,9 @@ This is one way to run your app — you can also build it directly from Android
4444

4545
## Step 3: Modify your app
4646

47-
Now that you have successfully run the app, let's make changes!
48-
49-
Open `App.tsx` in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by [Fast Refresh](https://reactnative.dev/docs/fast-refresh).
50-
51-
When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:
52-
53-
- **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Dev Menu**, accessed via <kbd>Ctrl</kbd> + <kbd>M</kbd> (Windows/Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (macOS).
54-
- **iOS**: Press <kbd>R</kbd> in iOS Simulator.
47+
If you modifiy the javascript / typescript files the app should automatically reload otherwise you can press `r` in the terminal.
48+
If you update the root/package src files you will need to run `bun run setup` to update the local react-native-onesignal package.
49+
And if you modify things like java or c code, you will need to run `bun run android` or `bun run ios` again.
5550

5651
## Congratulations! :tada:
5752

examples/RNOneSignalTS/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mv react-native-onesignal-*.tgz react-native-onesignal.tgz
1010

1111
# Use fresh install of the package
1212
cd $ORIGINAL_DIR
13-
rm -rf node_modules/react-native-onesignal
13+
bun pm cache rm
1414
bun i
1515

1616
# Reinstall pods to pick up the updated native module

0 commit comments

Comments
 (0)