diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index 0ba2e958a6..eba0bb4dfb 100644 --- a/src/view/com/composer/text-input/TextInput.tsx +++ b/src/view/com/composer/text-input/TextInput.tsx @@ -6,9 +6,8 @@ import { useState, } from 'react' import { - type NativeSyntheticEvent, Text as RNText, - type TextInputSelectionChangeEventData, + type TextInputSelectionChangeEvent, View, } from 'react-native' import {AppBskyRichtextFacet, RichText} from '@atproto/api' @@ -145,7 +144,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 }, diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index f859b7b17d..df2c5594d4 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -21,11 +21,7 @@ import {Text} from '#/components/Typography' import {type TextInputProps, type TextInputRef} from './TextInput.types' import {getImageOrVideoFromUri} from './web/uri-to-media' -const RichTextInput = lazy(async () => { - await new Promise(resolve => setTimeout(resolve, 2000)) - - return await import('./web/RichTextInputWeb') -}) +const RichTextInput = lazy(() => import('./web/RichTextInputWeb')) function FallbackTextInput({ ref,