ReactNativeViewViewConfigAndroid.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. const ReactNativeViewViewConfigAndroid = {
  12. uiViewClassName: 'RCTView',
  13. bubblingEventTypes: {
  14. topSelect: {
  15. phasedRegistrationNames: {
  16. bubbled: 'onSelect',
  17. captured: 'onSelectCapture',
  18. },
  19. },
  20. },
  21. directEventTypes: {
  22. topClick: {
  23. registrationName: 'onClick',
  24. },
  25. topContentSizeChange: {
  26. registrationName: 'onContentSizeChange',
  27. },
  28. topLoadingError: {
  29. registrationName: 'onLoadingError',
  30. },
  31. topLoadingFinish: {
  32. registrationName: 'onLoadingFinish',
  33. },
  34. topLoadingStart: {
  35. registrationName: 'onLoadingStart',
  36. },
  37. topMessage: {
  38. registrationName: 'onMessage',
  39. },
  40. topMomentumScrollBegin: {
  41. registrationName: 'onMomentumScrollBegin',
  42. },
  43. topMomentumScrollEnd: {
  44. registrationName: 'onMomentumScrollEnd',
  45. },
  46. topScroll: {
  47. registrationName: 'onScroll',
  48. },
  49. topScrollBeginDrag: {
  50. registrationName: 'onScrollBeginDrag',
  51. },
  52. topScrollEndDrag: {
  53. registrationName: 'onScrollEndDrag',
  54. },
  55. topSelectionChange: {
  56. registrationName: 'onSelectionChange',
  57. },
  58. },
  59. validAttributes: {
  60. hasTVPreferredFocus: true,
  61. focusable: true,
  62. nativeBackgroundAndroid: true,
  63. nativeForegroundAndroid: true,
  64. nextFocusDown: true,
  65. nextFocusForward: true,
  66. nextFocusLeft: true,
  67. nextFocusRight: true,
  68. nextFocusUp: true,
  69. },
  70. };
  71. module.exports = ReactNativeViewViewConfigAndroid;