Ejemplo n.º 1
0
 private ReactInstance(
     IReactQueueConfiguration queueConfiguration,
     Func <IJavaScriptExecutor> jsExecutorFactory,
     NativeModuleRegistry registry,
     JavaScriptBundleLoader bundleLoader)
 {
     _registry          = registry;
     _jsExecutorFactory = jsExecutorFactory;
     _jsRegistry        = new JavaScriptModuleRegistry();
     _bundleLoader      = bundleLoader;
     QueueConfiguration = queueConfiguration;
 }
        private ReactInstance(
            ReactQueueConfigurationSpec reactQueueConfigurationSpec,
            Func <IJavaScriptExecutor> jsExecutorFactory,
            NativeModuleRegistry registry,
            JavaScriptBundleLoader bundleLoader,
            Action <Exception> nativeModuleCallExceptionHandler)
        {
            _registry          = registry;
            _jsExecutorFactory = jsExecutorFactory;
            _nativeModuleCallExceptionHandler = nativeModuleCallExceptionHandler;
            _jsRegistry   = new JavaScriptModuleRegistry();
            _bundleLoader = bundleLoader;

            QueueConfiguration = ReactQueueConfiguration.Create(
                reactQueueConfigurationSpec,
                HandleException);
        }