import { CornerComponentProps } from '../cornerComponent/types'; import { StyleProp, TextStyle, ViewStyle } from 'react-native'; import { rotationComponentPropTypes } from '../rotationSnapPoint/types'; import { SIDES } from '../../constants'; export interface DragTextRef { /** * Change border visibility * @param borderStatus border visibility */ setBorderStatus: (value: boolean) => void; } export interface DragTextPropTypes { // TextInput Types onChangeText?: ((text: string) => void) | undefined; blurOnSubmit?: boolean | undefined; value?: string | undefined; onBlur?: | ((e: NativeSyntheticEvent) => void) | undefined; onItemActive?: () => void; /** * Component visibility * @type boolean | undefined */ visible?: boolean; /** * Custom corner component props * [{ side:'TL', customCornerComponent:customComponent }] * @type Array */ cornerComponents?: Array; /** * Custom rotation component props * [{ side:'bottom', customRotationComponent:customComponent }] * @type rotationComponentPropTypes */ rotationComponent?: rotationComponentPropTypes; /** * Resizer snap points [ 'left', 'right', 'top', 'bottom' ] * @type Array */ resizerSnapPoints?: Array; /** * External text styles * @type StyleProp */ externalTextStyles?: StyleProp; /** * External border styles * @type StyleProp */ externalBorderStyles?: StyleProp; placeholder?: string; defaultTextValue?: string; }