From dbe7abedc29df53358f22dd81f1fa2bb37eee1c4 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 4 Feb 2026 13:27:27 -0600 Subject: [PATCH] we get types now :) --- src/view/com/composer/text-input/TextInput.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index f9f50497f8..93a3a8bb40 100644 --- a/src/view/com/composer/text-input/TextInput.tsx +++ b/src/view/com/composer/text-input/TextInput.tsx @@ -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) => { + (evt: TextInputSelectionChangeEvent) => { // NOTE we track the input selection using a ref to avoid excessive renders -prf textInputSelection.current = evt.nativeEvent.selection },