Skip to content

Commit ee1deba

Browse files
Removed unnecessary const
1 parent 4adc151 commit ee1deba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/KeyboardCompatibleView/hooks/useKeyboardCompatibleHeight.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export const useKeyboardCompatibleHeight = ({
5555
},
5656
[enabled, hidingKeyboardInProgress, rootChannelView, setHeight],
5757
);
58-
const keyboardWillShow = keyboardDidShow;
5958

6059
const keyboardDidHide = useCallback(() => {
6160
if (Platform.OS === 'ios') {
@@ -68,7 +67,7 @@ export const useKeyboardCompatibleHeight = ({
6867
useEffect(() => {
6968
if (appState === 'active') {
7069
if (Platform.OS === 'ios') {
71-
Keyboard.addListener('keyboardWillShow', keyboardWillShow);
70+
Keyboard.addListener('keyboardWillShow', keyboardDidShow);
7271
} else {
7372
// Android doesn't support keyboardWillShow event.
7473
Keyboard.addListener('keyboardDidShow', keyboardDidShow);

0 commit comments

Comments
 (0)