mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Adding Dev Loading controller without activity for VR (#35392)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35392 Changelog: [General][Added] - For supporting Dev Loading View across platforms, adding the DevLoadingViewController without an activity/context. Reviewed By: rshest Differential Revision: D40947239 fbshipit-source-id: de124b0a7ee39dc7da3c1c45972a6703eff2f0ef
This commit is contained in:
1 parent
6c315de226
commit
662b51fad2
8 files changed
+62
-22
No files matched your search
@@ -28,6 +28,7 @@ import com.facebook.react.common.SurfaceDelegateFactory;
|
||||
import com.facebook.react.devsupport.DefaultDevSupportManagerFactory;
|
||||
import com.facebook.react.devsupport.DevSupportManagerFactory;
|
||||
import com.facebook.react.devsupport.interfaces.DevBundleDownloadListener;
|
||||
import com.facebook.react.devsupport.interfaces.DevLoadingViewManager;
|
||||
import com.facebook.react.devsupport.interfaces.DevSupportManager;
|
||||
import com.facebook.react.devsupport.interfaces.RedBoxHandler;
|
||||
import com.facebook.react.jscexecutor.JSCExecutor;
|
||||
@@ -67,6 +68,7 @@ public class ReactInstanceManagerBuilder {
|
||||
private @Nullable Map<String, RequestHandler> mCustomPackagerCommandHandlers;
|
||||
private @Nullable ReactPackageTurboModuleManagerDelegate.Builder mTMMDelegateBuilder;
|
||||
private @Nullable SurfaceDelegateFactory mSurfaceDelegateFactory;
|
||||
private @Nullable DevLoadingViewManager mDevLoadingViewManager;
|
||||
private JSEngineResolutionAlgorithm jsEngineResolutionAlgorithm = null;
|
||||
|
||||
/* package protected */ ReactInstanceManagerBuilder() {}
|
||||
@@ -216,6 +218,13 @@ public class ReactInstanceManagerBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** Sets the Dev Loading View Manager. */
|
||||
public ReactInstanceManagerBuilder setDevLoadingViewManager(
|
||||
@Nullable DevLoadingViewManager devLoadingViewManager) {
|
||||
mDevLoadingViewManager = devLoadingViewManager;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the initial lifecycle state of the host. For example, if the host is already resumed at
|
||||
* creation time, we wouldn't expect an onResume call until we get an onPause call.
|
||||
@@ -337,7 +346,8 @@ public class ReactInstanceManagerBuilder {
|
||||
mJSIModulesPackage,
|
||||
mCustomPackagerCommandHandlers,
|
||||
mTMMDelegateBuilder,
|
||||
mSurfaceDelegateFactory);
|
||||
mSurfaceDelegateFactory,
|
||||
mDevLoadingViewManager);
|
||||
}
|
||||
|
||||
private JavaScriptExecutorFactory getDefaultJSExecutorFactory(
|
||||
|
||||
Reference in new issue
Block a user