Repository navigation
@callstack/react-native-brownfield@5.1.0
Minor Changes
-
#450
4846a05Thanks @borisyankov! - AddpreloadBundletostartReactNativeon iOS. Without a preload,startReactNativeonly makes the factory, and React Native loads the JavaScript bundle when it creates the first React Native view.startReactNative(launchOptions:preloadBundle:onBundleLoaded:)moves that work to the app launch: the call starts the React Host, and React Native evaluates the bundle on the JavaScript thread, in parallel with the remainder of the app launch. On Android,ReactNativeBrownfield.initializedoes the same operation. This shape ofstartReactNativealso takes the launch options for the React Host.onBundleLoadednow runs on the main thread, and not on the JavaScript thread. A callback that you add after React Native loaded the bundle runs in the next turn of the main run loop.
Patch Changes
- #381
b8e8da5Thanks @alpharius-ck! - e2e tests for android - Updated dependencies []:
- @callstack/brownfield-cli@5.1.0