mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e68cf7cee9
Summary: This diff removes the call to UIManager.getViewManagerConfig into the deprecatedPropType method when static view configs are enabled This was necessary to avoid innecessary calls to UIManager.getViewManagerConfig and to avoid loading UIManagerModule classes when static view configs are enabled changelog: [internal] internal Reviewed By: fkgozali, yungsters Differential Revision: D26040855 fbshipit-source-id: 82cad9f4abe9898e781fd989ebaa03497dad926b
67 lines
2.0 KiB
JavaScript
67 lines
2.0 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.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
/**
|
|
* The list of non-ViewManager related UIManager properties.
|
|
*
|
|
* In an effort to improve startup performance by lazily loading view managers,
|
|
* the interface to access view managers will change from
|
|
* UIManager['viewManagerName'] to UIManager.getViewManagerConfig('viewManagerName').
|
|
* By using a function call instead of a property access, the UIManager will
|
|
* be able to initialize and load the required view manager from native
|
|
* synchronously. All of React Native's core components have been updated to
|
|
* use getViewManagerConfig(). For the next few releases, any usage of
|
|
* UIManager['viewManagerName'] will result in a warning. Because React Native
|
|
* does not support Proxy objects, a view manager access is implied if any of
|
|
* UIManager's properties that are not one of the properties below is being
|
|
* accessed. Once UIManager property accesses for view managers has been fully
|
|
* deprecated, this file will also be removed.
|
|
*/
|
|
module.exports = [
|
|
'clearJSResponder',
|
|
'configureNextLayoutAnimation',
|
|
'createView',
|
|
'dismissPopupMenu',
|
|
'dispatchViewManagerCommand',
|
|
'findSubviewIn',
|
|
'getConstantsForViewManager',
|
|
'getDefaultEventTypes',
|
|
'manageChildren',
|
|
'measure',
|
|
'measureInWindow',
|
|
'measureLayout',
|
|
'measureLayoutRelativeToParent',
|
|
'removeRootView',
|
|
'removeSubviewsFromContainerWithID',
|
|
'replaceExistingNonRootView',
|
|
'sendAccessibilityEvent',
|
|
'setChildren',
|
|
'setJSResponder',
|
|
'setLayoutAnimationEnabledExperimental',
|
|
'showPopupMenu',
|
|
'updateView',
|
|
'viewIsDescendantOf',
|
|
'PopupMenu',
|
|
'LazyViewManagersEnabled',
|
|
'ViewManagerNames',
|
|
'StyleConstants',
|
|
'AccessibilityEventTypes',
|
|
'UIView',
|
|
'getViewManagerConfig',
|
|
'hasViewManagerConfig',
|
|
'blur',
|
|
'focus',
|
|
'genericBubblingEventTypes',
|
|
'genericDirectEventTypes',
|
|
'lazilyLoadView',
|
|
];
|