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
feat(ios): support bundled JS in debug builds (#317)
* feat(ios): support bundled JS in debug builds
* fix(cli): embed debug JS bundle in simulator xcframeworks
* feat(ios): enable development loading view configuration in debug mode
- Added a method to configure the development loading view based on the debug settings.
- Introduced `BrownfieldDevLoadingViewBridge` to manage the loading view state.
- Updated `BrownfieldAppleApp` to prefer bundled bundles in debug mode.
- Adjusted `ExpoHostRuntime` and `ReactNativeHostRuntime` to call the new configuration method.
* fix(cli): resolve packaged framework without scheme
* fix(ios): make swift tests self-contained
* fix: ftm issue
* fix(ios): address pr review follow-ups
* fix(expo): sync brownfield framework target updates
* refactor(ios): make bundle URL resolver a class
* fix: code review
* fix(ios): address follow-up review comments
* fix: merge conflict
Add an opt-in iOS Debug mode for loading the embedded JavaScript bundle with `preferEmbeddedBundleInDebug`, fix `bundleURLOverride` fallback behavior when the override returns `nil`, and add native bundle-resolution tests.
Copy file name to clipboardExpand all lines: docs/docs/docs/api-reference/react-native-brownfield/objective-c.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ A singleton that keeps an instance of `ReactNativeBrownfield` object.
33
33
|`entryFile`|`NSString`|`index`| Path to JavaScript entry file in development. |
34
34
|`bundlePath`|`NSString`|`main.jsbundle`| Path to JavaScript bundle file. |
35
35
|`bundle`|`NSBundle`|`Bundle.main`| Bundle instance to lookup the JavaScript bundle resource. |
36
+
|`preferEmbeddedBundleInDebug`|`BOOL`|`NO`| Prefer the embedded JavaScript bundle instead of Metro when the framework is built in Debug. |
36
37
|`bundleURLOverride`|`NSURL *(^)(void)`|`nil`| Dynamic bundle URL provider called on every bundle load. When set, overrides default bundle load behavior. |
0 commit comments