62 lines
2.3 KiB
JavaScript
62 lines
2.3 KiB
JavaScript
|
/**
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*
|
||
|
* @format
|
||
|
* @flow strict-local
|
||
|
*/
|
||
|
|
||
|
import typeof BatchedBridge from '../BatchedBridge/BatchedBridge';
|
||
|
import typeof ExceptionsManager from '../Core/ExceptionsManager';
|
||
|
import typeof Platform from '../Utilities/Platform';
|
||
|
import typeof RCTEventEmitter from '../EventEmitter/RCTEventEmitter';
|
||
|
import typeof ReactNativeViewConfigRegistry from '../Renderer/shims/ReactNativeViewConfigRegistry';
|
||
|
import typeof TextInputState from '../Components/TextInput/TextInputState';
|
||
|
import typeof UIManager from '../ReactNative/UIManager';
|
||
|
import typeof deepDiffer from '../Utilities/differ/deepDiffer';
|
||
|
import typeof deepFreezeAndThrowOnMutationInDev from '../Utilities/deepFreezeAndThrowOnMutationInDev';
|
||
|
import typeof flattenStyle from '../StyleSheet/flattenStyle';
|
||
|
import typeof ReactFiberErrorDialog from '../Core/ReactFiberErrorDialog';
|
||
|
|
||
|
// flowlint unsafe-getters-setters:off
|
||
|
module.exports = {
|
||
|
get BatchedBridge(): BatchedBridge {
|
||
|
return require('../BatchedBridge/BatchedBridge');
|
||
|
},
|
||
|
get ExceptionsManager(): ExceptionsManager {
|
||
|
return require('../Core/ExceptionsManager');
|
||
|
},
|
||
|
get Platform(): Platform {
|
||
|
return require('../Utilities/Platform');
|
||
|
},
|
||
|
get RCTEventEmitter(): RCTEventEmitter {
|
||
|
return require('../EventEmitter/RCTEventEmitter');
|
||
|
},
|
||
|
get ReactNativeViewConfigRegistry(): ReactNativeViewConfigRegistry {
|
||
|
return require('../Renderer/shims/ReactNativeViewConfigRegistry');
|
||
|
},
|
||
|
get TextInputState(): TextInputState {
|
||
|
return require('../Components/TextInput/TextInputState');
|
||
|
},
|
||
|
get UIManager(): UIManager {
|
||
|
return require('../ReactNative/UIManager');
|
||
|
},
|
||
|
get deepDiffer(): deepDiffer {
|
||
|
return require('../Utilities/differ/deepDiffer');
|
||
|
},
|
||
|
get deepFreezeAndThrowOnMutationInDev(): deepFreezeAndThrowOnMutationInDev<
|
||
|
// $FlowFixMe - can't properly parameterize the getter's type
|
||
|
*,
|
||
|
> {
|
||
|
return require('../Utilities/deepFreezeAndThrowOnMutationInDev');
|
||
|
},
|
||
|
get flattenStyle(): flattenStyle {
|
||
|
return require('../StyleSheet/flattenStyle');
|
||
|
},
|
||
|
get ReactFiberErrorDialog(): ReactFiberErrorDialog {
|
||
|
return require('../Core/ReactFiberErrorDialog');
|
||
|
},
|
||
|
};
|