UNPKG

@react-form-fields/native-base

Version:

Native Base Form Fields

18 lines (17 loc) 3.35 kB
import { PropsResolver } from '@react-form-fields/core/interfaces/props'; import { NativeBase } from 'native-base'; import * as React from 'react'; import { IFlowIndexProp } from './hooks/useFieldFlow'; import { IWrapperProps } from './shared/Wrapper'; export interface IFieldTextRef { focus: () => void; blur: () => void; setDirty: (dirty: boolean) => void; } export interface IFieldTextProps extends PropsResolver<NativeBase.Input>, IFlowIndexProp, IWrapperProps { value: string | number; displayValue?: string; onChange: (value: any) => void; } declare const FieldText: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<IFieldTextProps, "onChange" | "inlineLabel" | "stackedLabel" | "disabled" | "placeholder" | "secureTextEntry" | "style" | "allowFontScaling" | "numberOfLines" | "onLayout" | "testID" | "nativeID" | "maxFontSizeMultiplier" | "selectionColor" | "textBreakStrategy" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityStates" | "accessibilityState" | "accessibilityHint" | "onAccessibilityAction" | "accessibilityComponentType" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityTraits" | "accessibilityViewIsModal" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "flowIndex" | "tabIndex" | "value" | "children" | "errorMessage" | "helperText" | "label" | "mask" | "hitSlop" | "onBlur" | "onFocus" | "hasTVPreferredFocus" | "tvParallaxProperties" | "name" | "validation" | "validationContext" | "validationAttributeNames" | "marginBottom" | "pointerEvents" | "removeClippedSubviews" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "shouldRasterizeIOS" | "isTVSelectable" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "LabelProps" | "ItemProps" | "loading" | "leftIcon" | "leftIconAction" | "rightIcon" | "rightIconAction" | "hideErrorMessage" | "_onLabelPress" | "_onPress" | "_disabled" | "getRef" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onSelectionChange" | "onSubmitEditing" | "onScroll" | "onKeyPress" | "placeholderTextColor" | "returnKeyType" | "selectTextOnFocus" | "selection" | "inputAccessoryViewID" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "autoCompleteType" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "underlineColorAndroid" | "textAlignVertical" | "displayValue"> & React.RefAttributes<IFieldTextRef>>>; export default FieldText;