mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
84f148ba44
Summary: This code was added in D2442406 in Sep 2015. We have other ways to track the calls to these methods these days. I'm not even sure if this works anymore and it isn't called anywhere. Reviewed By: JoshuaGross Differential Revision: D16833299 fbshipit-source-id: cad70c06b149ed424122a9a464564835e7a877e5
39 lines
1018 B
JavaScript
39 lines
1018 B
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.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
'use strict';
|
|
|
|
import type {Spec} from './NativeUIManager';
|
|
|
|
interface UIManagerJSInterface extends Spec {
|
|
+getViewManagerConfig: (viewManagerName: string) => Object;
|
|
+createView: (
|
|
reactTag: ?number,
|
|
viewName: string,
|
|
rootTag: number,
|
|
props: Object,
|
|
) => void;
|
|
+updateView: (reactTag: number, viewName: string, props: Object) => void;
|
|
+manageChildren: (
|
|
containerTag: ?number,
|
|
moveFromIndices: Array<number>,
|
|
moveToIndices: Array<number>,
|
|
addChildReactTags: Array<number>,
|
|
addAtIndices: Array<number>,
|
|
removeAtIndices: Array<number>,
|
|
) => void;
|
|
}
|
|
|
|
const UIManager: UIManagerJSInterface =
|
|
global.RN$Bridgeless === true
|
|
? require('./DummyUIManager') // No UIManager in bridgeless mode
|
|
: require('./PaperUIManager');
|
|
|
|
module.exports = UIManager;
|