we get types now :)

This commit is contained in:
Samuel Newman
2026-02-04 13:27:27 -06:00
parent 74cfecb992
commit dbe7abedc2
@@ -6,17 +6,14 @@ import {
useState,
} from 'react'
import {
type NativeSyntheticEvent,
Text as RNText,
type TextInputSelectionChangeEventData,
type TextInputSelectionChangeEvent,
View,
} from 'react-native'
import {AppBskyRichtextFacet, RichText} from '@atproto/api'
import PasteInput, {
type PastedFile,
type PasteInputRef,
// @ts-expect-error no types when installing from github
// eslint-disable-next-line import-x/no-unresolved
} from '@mattermost/react-native-paste-input'
import {POST_IMG_MAX} from '#/lib/constants'
@@ -145,7 +142,7 @@ export function TextInput({
)
const onSelectionChange = useCallback(
(evt: NativeSyntheticEvent<TextInputSelectionChangeEventData>) => {
(evt: TextInputSelectionChangeEvent) => {
// NOTE we track the input selection using a ref to avoid excessive renders -prf
textInputSelection.current = evt.nativeEvent.selection
},