diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 58ec65a883..80890286bc 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -154,6 +154,13 @@ export const ComposePost = observer(function ComposePost({ const [extGif, setExtGif] = useState() const [labels, setLabels] = useState([]) const [threadgate, setThreadgate] = useState([]) + + React.useEffect(() => { + if (!isAndroid) return + const id = setTimeout(() => textInput.current?.focus(), 100) + return () => clearTimeout(id) + }, []) + const gallery = useMemo( () => new GalleryModel(initImageUris), [initImageUris], @@ -517,7 +524,7 @@ export const ComposePost = observer(function ComposePost({ ref={textInput} richtext={richtext} placeholder={selectTextInputPlaceholder} - autoFocus={true} + autoFocus={!isAndroid} setRichText={setRichText} onPhotoPasted={onPhotoPasted} onPressPublish={onPressPublish}