/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ import * as React from 'react'; import type AnimatedNode from 'react-native/Libraries/Animated/nodes/AnimatedNode'; import type { CompositeAnimation } from 'react-native/Libraries/Animated/Animated'; import type { Props as TextInputProps } from 'react-native/Libraries/Components/TextInput/TextInput'; import type { ImageProps } from 'react-native/Libraries/Image/ImageProps'; import type { PressEvent, SyntheticEvent } from 'react-native/Libraries/Types/CoreEventTypes'; import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; type ReactNativeProps = { accessible?: ViewProps['accessible']; accessibilityLabel?: ViewProps['accessibilityLabel']; accessibilityLabelledBy?: ViewProps['accessibilityLabelledBy']; accessibilityLiveRegion?: ViewProps['accessibilityLiveRegion']; accessibilityElementsHidden?: ViewProps['accessibilityElementsHidden']; accessibilityPosInSet?: null | undefined | number; accessibilityState?: { busy?: null | undefined | boolean; checked?: (null | undefined | boolean) | 'mixed'; disabled?: null | undefined | boolean; expanded?: null | undefined | boolean; selected?: null | undefined | boolean; }; accessibilitySetSize?: null | undefined | number; accessibilityValue?: { max?: null | undefined | number; min?: null | undefined | number; now?: null | undefined | number; text?: null | undefined | string; }; accessibilityViewIsModal?: null | undefined | boolean; autoCapitalize?: | null | undefined | ('none' | 'sentences' | 'words' | 'characters'); autoComplete?: null | undefined | string; alt?: null | undefined | string; animated?: null | undefined | boolean; caretHidden?: TextInputProps['caretHidden']; cursorColor?: TextInputProps['cursorColor']; children?: null | undefined | React.ReactNode; crossOrigin?: ImageProps['crossOrigin']; defaultValue?: TextInputProps['defaultValue']; disabled?: null | undefined | boolean; editable?: TextInputProps['editable']; enterKeyHint?: TextInputProps['enterKeyHint']; focusable?: null | undefined | boolean; height?: ImageProps['height']; importantForAccessibility?: 'no-hide-descendants'; inputMode?: TextInputProps['inputMode']; maxLength?: TextInputProps['maxLength']; multiline?: TextInputProps['multiline']; nativeID?: ViewProps['nativeID']; numberOfLines?: TextInputProps['numberOfLines']; onBlur?: ViewProps['onBlur']; onChange?: TextInputProps['onChange']; onError?: ImageProps['onError']; onFocus?: ViewProps['onFocus']; onGotPointerCapture?: ViewProps['onGotPointerCapture']; onKeyPress?: TextInputProps['onKeyPress']; onLoad?: ImageProps['onLoad']; onLostPointerCapture?: ViewProps['onLostPointerCapture']; onMouseDown?: any; onMouseEnter?: any; onMouseLeave?: any; onMouseMove?: any; onMouseOut?: any; onMouseOver?: any; onMouseUp?: any; onPointerCancel?: ViewProps['onPointerCancel']; onPointerDown?: ViewProps['onPointerDown']; onPointerEnter?: ViewProps['onPointerEnter']; onPointerLeave?: ViewProps['onPointerLeave']; onPointerMove?: ViewProps['onPointerMove']; onPointerOut?: ViewProps['onPointerOut']; onPointerOver?: ViewProps['onPointerOver']; onPointerUp?: ViewProps['onPointerUp']; onPress?: null | undefined | ((event: PressEvent) => void); onScroll?: any; onSelectionChange?: TextInputProps['onSelectionChange']; onSubmitEditing?: TextInputProps['onSubmitEditing']; onTouchCancel?: ViewProps['onTouchCancel']; onTouchStart?: ViewProps['onTouchStart']; onTouchEnd?: ViewProps['onTouchEnd']; onTouchMove?: ViewProps['onTouchMove']; placeholder?: TextInputProps['placeholder']; placeholderTextColor?: TextInputProps['placeholderTextColor']; pointerEvents?: ViewProps['pointerEvents']; ref?: any; referrerPolicy?: ImageProps['referrerPolicy']; renderToHardwareTextureAndroid?: ViewProps['renderToHardwareTextureAndroid']; role?: null | undefined | string; secureTextEntry?: TextInputProps['secureTextEntry']; spellCheck?: TextInputProps['spellCheck']; src?: ImageProps['src']; srcSet?: ImageProps['srcSet']; style: ReactNativeStyle; testID?: ViewProps['testID']; value?: TextInputProps['value']; width?: ImageProps['width']; }; type ReactNativeTransform = | Readonly<{ matrix: number[] }> | Readonly<{ perspective: number }> | Readonly<{ rotate: string }> | Readonly<{ rotateX: string }> | Readonly<{ rotateY: string }> | Readonly<{ rotateZ: string }> | Readonly<{ scale: number }> | Readonly<{ scaleX: number }> | Readonly<{ scaleY: number }> | Readonly<{ scaleZ: number }> | Readonly<{ translateX: number | string }> | Readonly<{ translateY: number | string }> | Readonly<{ skewX: string }> | Readonly<{ skewY: string }>; type ReactNativeStyleValue = | number | string | ReactNativeTransform[] | AnimatedNode; type ReactNativeStyle = { [$$Key$$: string]: null | undefined | ReactNativeStyleValue; }; export type { CompositeAnimation, ReactNativeProps, ReactNativeStyle, ReactNativeStyleValue, ReactNativeTransform, SyntheticEvent };