You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modifies `package.json` to wire up the local library:
76
80
- Adds `@bravemobile/react-native-code-push` as a dependency.
77
81
- Adds an npm `sync-local-library` script pointing to `syncLocalLibrary.ts`.
78
-
- Adds a `setup:pods` convenience script (`bundle install && cd ios && bundle exec pod install`).
79
-
- Registers `sync-local-library` as a `postinstall` hook so the local build is synced on every `npm install`.
82
+
- Adds a version-aware `setup:pods` convenience script.
83
+
- Registers `sync-local-library` as a `postinstall` hook so every `npm install` keeps the local build in sync.
80
84
- Installs required dev dependencies if missing: `ts-node`, `axios`, `@types/node`, `@supabase/supabase-js`.
81
85
86
+
### iOS prebuild behavior by React Native version
87
+
88
+
The generated `setup:pods` script changes automatically by React Native version:
89
+
90
+
- RN `< 0.81.0`: `bundle install && cd ios && bundle exec pod install`
91
+
- RN `0.81.x` to `0.83.x`: `bundle install && cd ios && RCT_USE_RN_DEP=1 RCT_USE_PREBUILT_RNCORE=1 bundle exec pod install`
92
+
- RN `>= 0.84.0`: falls back to the default command because React Native enables iOS prebuilt artifacts by default
93
+
94
+
When a React Native prerelease template is published, prerelease builds follow the same rule as their target release line. For example, `0.84.0-rc.5` would use the default command.
95
+
96
+
Legacy architecture is orthogonal to this opt-in for RN `0.81.x`. If you run pods with `RCT_NEW_ARCH_ENABLED=0`, keep the same prebuild flags in the environment.
97
+
82
98
### 5. create-code-push-config
83
99
84
100
Copies the config template from `Examples/CodePushDemoApp/code-push.config.example.supabase.ts` into the project root as `code-push.config.ts`.
@@ -99,7 +115,7 @@ Runs `npm install` inside the generated project. Because a `postinstall` hook wa
99
115
100
116
### 9. install-ios-pods
101
117
102
-
Runs `bundle install` followed by `bundle exec pod install` inside the `ios/` directory. Skipped entirely when `--skip-pod-install` is specified.
118
+
Runs the generated `setup:pods` script, which applies the correct prebuild flags for the target React Native version before `pod install`. Skipped entirely when `--skip-pod-install` is specified.
0 commit comments