UIManagerProperties.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @flow strict-local
  8. * @format
  9. */
  10. 'use strict';
  11. /**
  12. * The list of non-ViewManager related UIManager properties.
  13. *
  14. * In an effort to improve startup performance by lazily loading view managers,
  15. * the interface to access view managers will change from
  16. * UIManager['viewManagerName'] to UIManager.getViewManagerConfig('viewManagerName').
  17. * By using a function call instead of a property access, the UIManager will
  18. * be able to initialize and load the required view manager from native
  19. * synchronously. All of React Native's core components have been updated to
  20. * use getViewManagerConfig(). For the next few releases, any usage of
  21. * UIManager['viewManagerName'] will result in a warning. Because React Native
  22. * does not support Proxy objects, a view manager access is implied if any of
  23. * UIManager's properties that are not one of the properties below is being
  24. * accessed. Once UIManager property accesses for view managers has been fully
  25. * deprecated, this file will also be removed.
  26. */
  27. module.exports = [
  28. 'clearJSResponder',
  29. 'configureNextLayoutAnimation',
  30. 'createView',
  31. 'dismissPopupMenu',
  32. 'dispatchViewManagerCommand',
  33. 'findSubviewIn',
  34. 'getConstantsForViewManager',
  35. 'getDefaultEventTypes',
  36. 'manageChildren',
  37. 'measure',
  38. 'measureInWindow',
  39. 'measureLayout',
  40. 'measureLayoutRelativeToParent',
  41. 'playTouchSound',
  42. 'removeRootView',
  43. 'removeSubviewsFromContainerWithID',
  44. 'replaceExistingNonRootView',
  45. 'sendAccessibilityEvent',
  46. 'setChildren',
  47. 'setJSResponder',
  48. 'setLayoutAnimationEnabledExperimental',
  49. 'showPopupMenu',
  50. 'updateView',
  51. 'viewIsDescendantOf',
  52. 'PopupMenu',
  53. 'LazyViewManagersEnabled',
  54. 'ViewManagerNames',
  55. 'StyleConstants',
  56. 'AccessibilityEventTypes',
  57. 'UIView',
  58. 'getViewManagerConfig',
  59. 'blur',
  60. 'focus',
  61. 'genericBubblingEventTypes',
  62. 'genericDirectEventTypes',
  63. 'lazilyLoadView',
  64. ];