Skip to content

Commit 5e1e085

Browse files
Fixing return value for keyboard related hook
1 parent 6856a27 commit 5e1e085

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/KeyboardCompatibleView/KeyboardCompatibleView.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ export const KeyboardCompatibleView = ({
3131

3232
const [initialHeight, setInitialHeight] = useState(0);
3333

34-
const [channelHeight, isKeyboardOpen] = useKeyboardCompatibleHeight({
35-
enabled,
36-
initialHeight,
37-
rootChannelView,
38-
});
34+
const { height: channelHeight, isKeyboardOpen } = useKeyboardCompatibleHeight(
35+
{
36+
enabled,
37+
initialHeight,
38+
rootChannelView,
39+
},
40+
);
3941

4042
useEffect(() => {
4143
Animated.timing(heightAnim, {

0 commit comments

Comments
 (0)