We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec4276 commit 82905dbCopy full SHA for 82905db
README.md
@@ -15,6 +15,28 @@ npm install react-native-key-command
15
16
`cd ios && pod install`
17
18
+Changes required in your `AppDelegate.m`
19
+
20
+```
21
+// add library imports in the top of your file
22
+#import <HardwareShortcuts.h>
23
24
+@implementation AppDelegate
25
26
+..
27
28
+// Add keyCommands and handleKeyCommand methods in AppDelegate class
29
+- (NSArray *)keyCommands {
30
+ return [HardwareShortcuts sharedInstance].keyCommands;
31
+}
32
33
+- (void)handleKeyCommand:(UIKeyCommand *)keyCommand {
34
+ [[HardwareShortcuts sharedInstance] handleKeyCommand:keyCommand];
35
36
37
+@end
38
39
40
## Android
41
42
Changes required in your `MainActivity.java`
0 commit comments