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 22 "version": "v1",
33 "packages": {
44 "@rnhooks/keyboard": {
5- "signature": "71eddb8d710cd84a80a166ab1ffe6981 ",
5+ "signature": "e84a2315d347d2d2ceba821854c718a8 ",
66 "file": true,
77 "replaced": "*"
88 }
Original file line number Diff line number Diff line change @@ -23,22 +23,12 @@ export default (config = {}) => {
2323 setVisible ( false ) ;
2424 }
2525
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-
3626 const showSubscription = Keyboard . addListener ( showEvent , onKeyboardShow ) ;
3727 const hideSubscription = Keyboard . addListener ( hideEvent , onKeyboardHide ) ;
3828
3929 return ( ) => {
40- showSubscription ? .remove ( ) ;
41- hideSubscription ? .remove ( ) ;
30+ showSubscription . remove ( ) ;
31+ hideSubscription . remove ( ) ;
4232 } ;
4333 } , [ useWillShow , useWillHide ] ) ;
4434
You can’t perform that action at this time.
0 commit comments