disable keyboard controller in the composer screen
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
import {
|
||||
KeyboardAvoidingView,
|
||||
KeyboardStickyView,
|
||||
useKeyboardContext,
|
||||
} from 'react-native-keyboard-controller'
|
||||
import Animated, {
|
||||
interpolateColor,
|
||||
@@ -129,6 +130,15 @@ export const ComposePost = observer(function ComposePost({
|
||||
const {closeAllDialogs} = useDialogStateControlContext()
|
||||
const t = useTheme()
|
||||
|
||||
const context = useKeyboardContext()
|
||||
|
||||
React.useEffect(() => {
|
||||
context.setEnabled(false)
|
||||
return () => {
|
||||
context.setEnabled(true)
|
||||
}
|
||||
})
|
||||
|
||||
const [isKeyboardVisible] = useIsKeyboardVisible({iosUseWillEvents: true})
|
||||
const [isProcessing, setIsProcessing] = useState(false)
|
||||
const [processingState, setProcessingState] = useState('')
|
||||
|
||||
Reference in New Issue
Block a user