AndroidTextInputViewConfig.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig';
  12. import type {ReactNativeBaseComponentViewConfig} from '../../Renderer/shims/ReactNativeTypes';
  13. const AndroidTextInputViewConfig = {
  14. uiViewClassName: 'AndroidTextInput',
  15. bubblingEventTypes: {
  16. topTextInput: {
  17. phasedRegistrationNames: {
  18. bubbled: 'onTextInput',
  19. captured: 'onTextInputCapture',
  20. },
  21. },
  22. },
  23. directEventTypes: {},
  24. validAttributes: {
  25. ...ReactNativeViewViewConfig.validAttributes,
  26. maxFontSizeMultiplier: true,
  27. placeholder: true,
  28. inlineImagePadding: true,
  29. contextMenuHidden: true,
  30. textShadowColor: {process: require('../../StyleSheet/processColor')},
  31. maxLength: true,
  32. selectTextOnFocus: true,
  33. textShadowRadius: true,
  34. underlineColorAndroid: {process: require('../../StyleSheet/processColor')},
  35. textDecorationLine: true,
  36. blurOnSubmit: true,
  37. textAlignVertical: true,
  38. fontStyle: true,
  39. textShadowOffset: true,
  40. selectionColor: {process: require('../../StyleSheet/processColor')},
  41. selection: true,
  42. placeholderTextColor: {process: require('../../StyleSheet/processColor')},
  43. importantForAutofill: true,
  44. lineHeight: true,
  45. textTransform: true,
  46. returnKeyType: true,
  47. keyboardType: true,
  48. multiline: true,
  49. color: true,
  50. autoCompleteType: true,
  51. numberOfLines: true,
  52. letterSpacing: true,
  53. returnKeyLabel: true,
  54. fontSize: true,
  55. onKeyPress: true,
  56. cursorColor: {process: require('../../StyleSheet/processColor')},
  57. text: true,
  58. showSoftInputOnFocus: true,
  59. textAlign: true,
  60. autoCapitalize: true,
  61. autoCorrect: true,
  62. caretHidden: true,
  63. secureTextEntry: true,
  64. textBreakStrategy: true,
  65. onScroll: true,
  66. onContentSizeChange: true,
  67. disableFullscreenUI: true,
  68. includeFontPadding: true,
  69. fontWeight: true,
  70. fontFamily: true,
  71. allowFontScaling: true,
  72. onSelectionChange: true,
  73. mostRecentEventCount: true,
  74. inlineImageLeft: true,
  75. editable: true,
  76. fontVariant: true,
  77. },
  78. };
  79. module.exports = (AndroidTextInputViewConfig: ReactNativeBaseComponentViewConfig<>);