mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f23da3aeb0
Summary: Right now calling FabricUIManager.addRootView() doesn't actually start running the application on Android. This diff: 1. Removes the #ifndef so that we actually call UIManagerBinding.startSurface() on Android 2. Passes through the JS module name from addRootView so we can render the surface (falls back to an empty string if not provided, which is the current behavior) 3. Adds an option for starting the surface using `RN$SurfaceRegistry` instead of `AppRegistry`, if that global property has been defined in JS. This is used for Venice (bridgeless RN) Reviewed By: shergin Differential Revision: D15366200 fbshipit-source-id: 4a506a589108905d4852b9723aac6fb0fad2d86e