@@ -30,19 +30,18 @@ export default function useKeyboard() {
30
30
}
31
31
32
32
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 )
37
37
38
38
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
+ } , [ ] )
46
45
47
46
return {
48
47
keyboardShown : shown ,
0 commit comments