File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 2
2
"version": "v1",
3
3
"packages": {
4
4
"@rnhooks/keyboard": {
5
- "signature": "71eddb8d710cd84a80a166ab1ffe6981 ",
5
+ "signature": "e84a2315d347d2d2ceba821854c718a8 ",
6
6
"file": true,
7
7
"replaced": "*"
8
8
}
Original file line number Diff line number Diff line change @@ -23,22 +23,12 @@ export default (config = {}) => {
23
23
setVisible ( false ) ;
24
24
}
25
25
26
- if ( Keyboard . removeListener ) {
27
- Keyboard . addListener ( showEvent , onKeyboardShow ) ;
28
- Keyboard . addListener ( hideEvent , onKeyboardHide ) ;
29
-
30
- return ( ) => {
31
- Keyboard . removeListener ( showEvent , onKeyboardShow ) ;
32
- Keyboard . removeListener ( hideEvent , onKeyboardHide ) ;
33
- } ;
34
- }
35
-
36
26
const showSubscription = Keyboard . addListener ( showEvent , onKeyboardShow ) ;
37
27
const hideSubscription = Keyboard . addListener ( hideEvent , onKeyboardHide ) ;
38
28
39
29
return ( ) => {
40
- showSubscription ? .remove ( ) ;
41
- hideSubscription ? .remove ( ) ;
30
+ showSubscription . remove ( ) ;
31
+ hideSubscription . remove ( ) ;
42
32
} ;
43
33
} , [ useWillShow , useWillHide ] ) ;
44
34
You can’t perform that action at this time.
0 commit comments