85 lines
2.4 KiB
JavaScript
85 lines
2.4 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-local
|
||
|
* @format
|
||
|
*/
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig';
|
||
|
import type {ReactNativeBaseComponentViewConfig} from '../../Renderer/shims/ReactNativeTypes';
|
||
|
|
||
|
const AndroidTextInputViewConfig = {
|
||
|
uiViewClassName: 'AndroidTextInput',
|
||
|
bubblingEventTypes: {
|
||
|
topTextInput: {
|
||
|
phasedRegistrationNames: {
|
||
|
bubbled: 'onTextInput',
|
||
|
captured: 'onTextInputCapture',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
directEventTypes: {},
|
||
|
validAttributes: {
|
||
|
...ReactNativeViewViewConfig.validAttributes,
|
||
|
|
||
|
maxFontSizeMultiplier: true,
|
||
|
placeholder: true,
|
||
|
inlineImagePadding: true,
|
||
|
contextMenuHidden: true,
|
||
|
textShadowColor: {process: require('../../StyleSheet/processColor')},
|
||
|
maxLength: true,
|
||
|
selectTextOnFocus: true,
|
||
|
textShadowRadius: true,
|
||
|
underlineColorAndroid: {process: require('../../StyleSheet/processColor')},
|
||
|
textDecorationLine: true,
|
||
|
blurOnSubmit: true,
|
||
|
textAlignVertical: true,
|
||
|
fontStyle: true,
|
||
|
textShadowOffset: true,
|
||
|
selectionColor: {process: require('../../StyleSheet/processColor')},
|
||
|
selection: true,
|
||
|
placeholderTextColor: {process: require('../../StyleSheet/processColor')},
|
||
|
importantForAutofill: true,
|
||
|
lineHeight: true,
|
||
|
textTransform: true,
|
||
|
returnKeyType: true,
|
||
|
keyboardType: true,
|
||
|
multiline: true,
|
||
|
color: true,
|
||
|
autoCompleteType: true,
|
||
|
numberOfLines: true,
|
||
|
letterSpacing: true,
|
||
|
returnKeyLabel: true,
|
||
|
fontSize: true,
|
||
|
onKeyPress: true,
|
||
|
cursorColor: {process: require('../../StyleSheet/processColor')},
|
||
|
text: true,
|
||
|
showSoftInputOnFocus: true,
|
||
|
textAlign: true,
|
||
|
autoCapitalize: true,
|
||
|
autoCorrect: true,
|
||
|
caretHidden: true,
|
||
|
secureTextEntry: true,
|
||
|
textBreakStrategy: true,
|
||
|
onScroll: true,
|
||
|
onContentSizeChange: true,
|
||
|
disableFullscreenUI: true,
|
||
|
includeFontPadding: true,
|
||
|
fontWeight: true,
|
||
|
fontFamily: true,
|
||
|
allowFontScaling: true,
|
||
|
onSelectionChange: true,
|
||
|
mostRecentEventCount: true,
|
||
|
inlineImageLeft: true,
|
||
|
editable: true,
|
||
|
fontVariant: true,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
module.exports = (AndroidTextInputViewConfig: ReactNativeBaseComponentViewConfig<>);
|