jordanbyron / react-native-quick-actions

A react-native interface for Touch 3D home screen quick actions
MIT License
1.06k stars 93 forks source link

README Missing Instructions #68

Closed rdonnelly closed 5 years ago

rdonnelly commented 5 years ago

Trying use this package, I was having a number of issues with getting the backgrounded start to work. Looks like there were some useful comments recently removed from the README. Any reason for that? On iOS adding this back in fixed it:

#import "RNQuickActionManager.h"

...

- (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL succeeded)) completionHandler {
  [RNQuickActionManager onQuickActionPress:shortcutItem completionHandler:completionHandler];
}
rdonnelly commented 5 years ago

Awesome, thank you! Really appreciate the library as well! 👏