scope enable/disable of keyboard controller in composer to only android (#4412)

zio/stable
Hailey 2024-06-06 22:29:34 -07:00 committed by GitHub
parent 2540616f43
commit fefae27396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -134,8 +134,8 @@ export const ComposePost = observer(function ComposePost({
// See https://github.com/bluesky-social/social-app/pull/4399
const {setEnabled} = useKeyboardContext()
React.useEffect(() => {
if (!isAndroid) return
setEnabled(false)
return () => {
setEnabled(true)
}