Skip to content

Commit

Permalink
Use hook
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Jun 11, 2024
1 parent 49e3b0a commit a5434e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/com/composer/Composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import {
KeyboardAvoidingView,
KeyboardStickyView,
useKeyboardContext,
useKeyboardController,
} from 'react-native-keyboard-controller'
import Animated, {
interpolateColor,
Expand Down Expand Up @@ -130,7 +130,7 @@ export const ComposePost = observer(function ComposePost({

// Disable this in the composer to prevent any extra keyboard height being applied.
// See https://github.com/bluesky-social/social-app/pull/4399
const {setEnabled} = useKeyboardContext()
const {setEnabled} = useKeyboardController()
React.useEffect(() => {
if (!isAndroid) return
setEnabled(false)
Expand Down

0 comments on commit a5434e9

Please sign in to comment.