mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-15 12:12:31 +08:00
Pass jsc config to JSC
Reviewed By: astreet Differential Revision: D2965497 fb-gh-sync-id: 1aef5a1f2d7ccb8de8ca403e51ebcf247bd6b034 shipit-source-id: 1aef5a1f2d7ccb8de8ca403e51ebcf247bd6b034
This commit is contained in:
committed by
Facebook Github Bot 6
parent
542432fc3e
commit
d032cc967d
@@ -181,6 +181,7 @@ public abstract class ReactInstanceManager {
|
||||
protected @Nullable LifecycleState mInitialLifecycleState;
|
||||
protected @Nullable UIImplementationProvider mUIImplementationProvider;
|
||||
protected @Nullable NativeModuleCallExceptionHandler mNativeModuleCallExceptionHandler;
|
||||
protected @Nullable JSCConfig mJSCConfig;
|
||||
|
||||
protected Builder() {
|
||||
}
|
||||
@@ -274,6 +275,11 @@ public abstract class ReactInstanceManager {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setJSCConfig(JSCConfig jscConfig) {
|
||||
mJSCConfig = jscConfig;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new {@link ReactInstanceManagerImpl}.
|
||||
* Before calling {@code build}, the following must be called:
|
||||
@@ -307,7 +313,8 @@ public abstract class ReactInstanceManager {
|
||||
mBridgeIdleDebugListener,
|
||||
Assertions.assertNotNull(mInitialLifecycleState, "Initial lifecycle state was not set"),
|
||||
mUIImplementationProvider,
|
||||
mNativeModuleCallExceptionHandler);
|
||||
mNativeModuleCallExceptionHandler,
|
||||
mJSCConfig);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user