fix composer keyboard avoiding behaviour by using keyboard-controller

This commit is contained in:
Samuel Newman
2025-12-29 17:46:31 +02:00
parent b0163fe63b
commit ffc11a542c
2 changed files with 23 additions and 29 deletions
+3
View File
@@ -2,6 +2,7 @@ import {useEffect} from 'react'
import {Animated, Easing} from 'react-native'
import {useAnimatedValue} from '#/lib/hooks/useAnimatedValue'
import {useEnableKeyboardController} from '#/lib/hooks/useEnableKeyboardController'
import {useComposerState} from '#/state/shell/composer'
import {atoms as a, useTheme} from '#/alf'
import {ComposePost} from '../com/composer/Composer'
@@ -34,6 +35,8 @@ export function Composer({winHeight}: {winHeight: number}) {
],
}
useEnableKeyboardController(!!state)
// rendering
// =