Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

disable keyboard controller in the composer screen (#4399)

* disable keyboard controller in the composer screen

* add comment

* oops

* destructure

* rename to keyboard context for clarity

* move destructure

* cleanup

authored by

Hailey and committed by
GitHub
885ad2c7 fef16e06

+12
+12
src/view/com/composer/Composer.tsx
··· 17 17 import { 18 18 KeyboardAvoidingView, 19 19 KeyboardStickyView, 20 + useKeyboardContext, 20 21 } from 'react-native-keyboard-controller' 21 22 import Animated, { 22 23 interpolateColor, ··· 128 129 const discardPromptControl = Prompt.usePromptControl() 129 130 const {closeAllDialogs} = useDialogStateControlContext() 130 131 const t = useTheme() 132 + 133 + // Disable this in the composer to prevent any extra keyboard height being applied. 134 + // See https://github.com/bluesky-social/social-app/pull/4399 135 + const {setEnabled} = useKeyboardContext() 136 + React.useEffect(() => { 137 + setEnabled(false) 138 + 139 + return () => { 140 + setEnabled(true) 141 + } 142 + }, [setEnabled]) 131 143 132 144 const [isKeyboardVisible] = useIsKeyboardVisible({iosUseWillEvents: true}) 133 145 const [isProcessing, setIsProcessing] = useState(false)