/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/chat/conversation/input-area/normal/input.shared.tsx
78 строк
2 KB
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
import type * as React from 'react' import type * as T from '@/constants/types' import type * as Styles from '@/styles' import type {TextType} from '@/common-adapters/text.shared' import type {TextInputProps} from 'react-native' export type Selection = { start: number end?: number } export type RefType = { blur: () => void clear: () => void focus: () => void getSelection: () => Selection | undefined isFocused: () => boolean transformText: (fn: (textInfo: TextInfo) => TextInfo, reflectChange: boolean) => void value: string getBoundingClientRect?: () => | undefined | { x: number y: number width: number height: number left: number top: number right: number bottom: number } } export type TextInfo = { text: string selection?: Selection } export type Props = { allowKeyboardEvents?: boolean disabled?: boolean autoFocus?: boolean autoCorrect?: boolean onBlur?: TextInputProps['onBlur'] onFocus?: TextInputProps['onFocus'] onSelectionChange?: TextInputProps['onSelectionChange'] autoCapitalize?: TextInputProps['autoCapitalize'] onKeyDown?: (e: React.KeyboardEvent) => void onKeyUp?: (e: React.KeyboardEvent) => void onEnterKeyDown?: (e?: React.KeyboardEvent) => void placeholder?: string className?: string ref?: React.Ref<RefType | null> textType?: TextType style?: Styles.StylesCrossPlatform onChangeText?: (value: string) => void onPasteImage?: (uris: Array<string>) => void multiline?: boolean rowsMin?: number rowsMax?: number padding?: keyof typeof Styles.globalMargins | 0 } export type PlatformInputProps = { cannotWrite: boolean explodingModeSeconds: number setExplodingMode: (mode: number) => void hintText: string setInputRef: (r: RefType | null) => void isEditing: boolean isExploding: boolean minWriterRole: T.Teams.TeamRoleType onCancelEditing: () => void onChangeText: (newText: string) => void onSubmit: (text: string) => void showReplyPreview: boolean suggestionOverlayStyle: Styles.StylesCrossPlatform }