mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f8158f8a03
Summary: Changelog: [Internal] * Rename DummyUIManager to BridgelessUIManager * Cleanup `RCTVirtualText` & `RCTShimmeringView` since the native changes from T107747313 are already in production, so these two will components always return a viewConfig in prod. - `console.error` when deprecated Bridge UIManager method are being accessed. - Make sure new BridgelessUIManager.js has the same method definition as [NativeUIManager.js](https://www.internalfb.com/code/fbsource/[e80c98b816183dcdfde1e81de01ba99aa6e30ed2]/xplat/js/react-native-github/Libraries/ReactNative/NativeUIManager.js?lines=15) Reviewed By: RSNara Differential Revision: D34203081 fbshipit-source-id: 99aafc2372b118d0c8cc41f7376e136dabae9bd5
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and 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
|
|
*/
|
|
|
|
import type {Spec} from './NativeUIManager';
|
|
import type {RootTag} from 'react-native/Libraries/Types/RootTagTypes';
|
|
|
|
export interface UIManagerJSInterface extends Spec {
|
|
+getViewManagerConfig: (viewManagerName: string) => Object;
|
|
+hasViewManagerConfig: (viewManagerName: string) => boolean;
|
|
+createView: (
|
|
reactTag: ?number,
|
|
viewName: string,
|
|
rootTag: RootTag,
|
|
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('./BridgelessUIManager')
|
|
: require('./PaperUIManager');
|
|
|
|
module.exports = UIManager;
|