123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- /**
- * 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-local
- * @format
- */
- 'use strict';
- import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig';
- import type {ReactNativeBaseComponentViewConfig} from '../../Renderer/shims/ReactNativeTypes';
- const RCTSinglelineTextInputViewConfig = {
- uiViewClassName: 'RCTSinglelineTextInputView',
- bubblingEventTypes: {
- topBlur: {
- phasedRegistrationNames: {
- bubbled: 'onBlur',
- captured: 'onBlurCapture',
- },
- },
- topChange: {
- phasedRegistrationNames: {
- bubbled: 'onChange',
- captured: 'onChangeCapture',
- },
- },
- topEndEditing: {
- phasedRegistrationNames: {
- bubbled: 'onEndEditing',
- captured: 'onEndEditingCapture',
- },
- },
- topFocus: {
- phasedRegistrationNames: {
- bubbled: 'onFocus',
- captured: 'onFocusCapture',
- },
- },
- topKeyPress: {
- phasedRegistrationNames: {
- bubbled: 'onKeyPress',
- captured: 'onKeyPressCapture',
- },
- },
- topSubmitEditing: {
- phasedRegistrationNames: {
- bubbled: 'onSubmitEditing',
- captured: 'onSubmitEditingCapture',
- },
- },
- topTouchCancel: {
- phasedRegistrationNames: {
- bubbled: 'onTouchCancel',
- captured: 'onTouchCancelCapture',
- },
- },
- topTouchEnd: {
- phasedRegistrationNames: {
- bubbled: 'onTouchEnd',
- captured: 'onTouchEndCapture',
- },
- },
- topTouchMove: {
- phasedRegistrationNames: {
- bubbled: 'onTouchMove',
- captured: 'onTouchMoveCapture',
- },
- },
- },
- directEventTypes: {},
- validAttributes: {
- ...ReactNativeViewViewConfig.validAttributes,
- fontSize: true,
- fontWeight: true,
- fontVariant: true,
- // flowlint-next-line untyped-import:off
- textShadowOffset: {diff: require('../../Utilities/differ/sizesDiffer')},
- allowFontScaling: true,
- fontStyle: true,
- textTransform: true,
- textAlign: true,
- fontFamily: true,
- lineHeight: true,
- isHighlighted: true,
- writingDirection: true,
- textDecorationLine: true,
- textShadowRadius: true,
- letterSpacing: true,
- textDecorationStyle: true,
- textDecorationColor: {process: require('../../StyleSheet/processColor')},
- color: {process: require('../../StyleSheet/processColor')},
- maxFontSizeMultiplier: true,
- textShadowColor: {process: require('../../StyleSheet/processColor')},
- editable: true,
- inputAccessoryViewID: true,
- caretHidden: true,
- enablesReturnKeyAutomatically: true,
- placeholderTextColor: {process: require('../../StyleSheet/processColor')},
- onSelectionChange: true,
- clearButtonMode: true,
- onContentSizeChange: true,
- keyboardType: true,
- selection: true,
- returnKeyType: true,
- blurOnSubmit: true,
- mostRecentEventCount: true,
- onChange: true,
- scrollEnabled: true,
- selectionColor: {process: require('../../StyleSheet/processColor')},
- contextMenuHidden: true,
- secureTextEntry: true,
- onTextInput: true,
- placeholder: true,
- autoCorrect: true,
- onScroll: true,
- multiline: true,
- textContentType: true,
- maxLength: true,
- autoCapitalize: true,
- keyboardAppearance: true,
- passwordRules: true,
- spellCheck: true,
- selectTextOnFocus: true,
- text: true,
- clearTextOnFocus: true,
- },
- };
- module.exports = (RCTSinglelineTextInputViewConfig: ReactNativeBaseComponentViewConfig<>);
|