Skip to content

Commit 10d9755

Browse files
committed
lint
1 parent e448290 commit 10d9755

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/useKeyboard.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,18 @@ export default function useKeyboard() {
3030
}
3131

3232
useEffect(() => {
33-
Keyboard.addListener('keyboardWillShow', handleKeyboardWillShow);
34-
Keyboard.addListener('keyboardDidShow', handleKeyboardDidShow);
35-
Keyboard.addListener('keyboardWillHide', handleKeyboardWillHide);
36-
Keyboard.addListener('keyboardDidHide', handleKeyboardDidHide);
33+
Keyboard.addListener('keyboardWillShow', handleKeyboardWillShow)
34+
Keyboard.addListener('keyboardDidShow', handleKeyboardDidShow)
35+
Keyboard.addListener('keyboardWillHide', handleKeyboardWillHide)
36+
Keyboard.addListener('keyboardDidHide', handleKeyboardDidHide)
3737

3838
return () => {
39-
Keyboard.removeListener('keyboardWillShow', handleKeyboardWillShow);
40-
Keyboard.removeListener('keyboardDidShow', handleKeyboardDidShow);
41-
Keyboard.removeListener('keyboardWillHide', handleKeyboardWillHide);
42-
Keyboard.removeListener('keyboardDidHide', handleKeyboardDidHide);
43-
};
44-
}, []);
45-
39+
Keyboard.removeListener('keyboardWillShow', handleKeyboardWillShow)
40+
Keyboard.removeListener('keyboardDidShow', handleKeyboardDidShow)
41+
Keyboard.removeListener('keyboardWillHide', handleKeyboardWillHide)
42+
Keyboard.removeListener('keyboardDidHide', handleKeyboardDidHide)
43+
}
44+
}, [])
4645

4746
return {
4847
keyboardShown: shown,

0 commit comments

Comments
 (0)