import Animated from 'react-native-reanimated'; import { StyleProp, TextStyle, ViewStyle } from 'react-native'; import { SIDES } from '../constants'; type textInputLayoutTypes = { height: number; width: number; }; export interface RNDTExternalContextVariables { // TextInput Types onChangeText?: ((text: string) => void) | undefined; onBlur?: | ((e: NativeSyntheticEvent) => void) | undefined; defaultTextValue?: string; blurOnSubmit?: boolean | undefined; placeholder?: string; value?: string | undefined; /** * 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; } export interface RNDTInternalContextVariables { /** * Border display status * @type Animated.SharedValue */ borderStatus: Animated.SharedValue; /** * customTextInput layout width and height * @type textInputLayoutTypes */ textInputLayout: textInputLayoutTypes; /** * Component resizing status * @type Animated.SharedValue */ isResize: Animated.SharedValue; /** * Rotation angle * @type Animated.SharedValue */ rotationAngle: Animated.SharedValue; /** * X value * @type Animated.SharedValue */ x: Animated.SharedValue; /** * Y value * @type Animated.SharedValue */ y: Animated.SharedValue; /** * Box width * @type Animated.SharedValue */ boxWidth: Animated.SharedValue; }