public IReadOnlyList <INativeModule> CreateNativeModules(ReactContext reactContext) { var uiManagerModule = default(INativeModule); using (Tracer.Trace(Tracer.TRACE_TAG_REACT_BRIDGE, "createUIManagerModule").Start()) { var layoutActionQueue = new LayoutActionQueue(reactContext.HandleException); var options = _lazyViewManagersEnabled ? UIManagerModuleOptions.LazyViewManagers : UIManagerModuleOptions.None; uiManagerModule = new UIManagerModule( reactContext, _reactInstanceManager.CreateAllViewManagers(reactContext), _uiImplementationProvider, layoutActionQueue, options); } return(new List <INativeModule> { //new AnimationsDebugModule( // reactContext, // _reactInstanceManager.DevSupportManager.DevSettings), new DeviceEventManagerModule(reactContext, _hardwareBackButtonHandler), new DeviceInfoModule(reactContext), new ExceptionsManagerModule(_reactInstanceManager.DevSupportManager), new PlatformConstantsModule(), new SourceCodeModule( _reactInstanceManager.SourceUrl, _reactInstanceManager.DevSupportManager.SourceMapUrl), new Timing(reactContext), uiManagerModule, //new DebugComponentOwnershipModule(reactContext), }); }
public IReadOnlyList <INativeModule> CreateNativeModules(ReactContext reactContext) { var uiManagerModule = default(INativeModule); using (Tracer.Trace(Tracer.TRACE_TAG_REACT_BRIDGE, "createUIManagerModule").Start()) { var viewManagerList = _reactInstanceManager.CreateAllViewManagers(reactContext); uiManagerModule = new UIManagerModule( reactContext, viewManagerList, _uiImplementationProvider); } return(new List <INativeModule> { //new AnimationsDebugModule( // reactContext, // _reactInstanceManager.DevSupportManager.DevSettings), //new SystemInfoModule(), new DeviceEventManagerModule(reactContext, _hardwareBackButtonHandler), new DeviceInfoModule(reactContext), new ExceptionsManagerModule(_reactInstanceManager.DevSupportManager), new Timing(reactContext), new SourceCodeModule( _reactInstanceManager.SourceUrl, _reactInstanceManager.DevSupportManager.SourceMapUrl), uiManagerModule, //new DebugComponentOwnershipModule(reactContext), }); }