{"repo":"mouselangelo/react-native-actions-shortcuts","free":true,"listed":false,"github":"https://github.com/mouselangelo/react-native-actions-shortcuts","clone":"git clone https://github.com/mouselangelo/react-native-actions-shortcuts.git","description":"iOS Home screen Quick Actions & Android App Shortcuts for react-native","language":"Kotlin","stars":143,"topics":["react-native","ios","android","quick-actions","app-shortcuts","home-screen","actions","uiapplicationshortcutitem","shortcut","shortcuts"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-actions-shortcuts iOS Home screen Quick Actions & Android App Shortcuts for react-native Installation Setup iOS If you are using cocoapods - you may need to run pod install (from ios directory). On iOS, Quick Actions are handled by the application:performActionForShortcutItem:completionHandler method of your app's UIApplicationDelegate (i.e. AppDelegate.m ), so, you will therefore need to add the following code in your project's AppDelegate.m ) file. Do not forget to add #import \"RNShortcuts.h\" on top of your project's AppDelegate.m file. Android Android doesn't require any additional setup. Usage Example project See the Example project for a working demo. Documentation Imports Initial shortcut / action Get the initial shortcut that the app was launched with. On iOS this will be returned just once, subsequent calls will return null . Listen for shortcut / action invocations Listen to shortcut / action invocations while app is running. On iOS the listener is also called for the initial invocation, unless it was already received via Shortcuts.getInitialShortcut() . Set shortcuts To set shortcuts (will replace existing dynamic actions / shortcuts) Clear shortcuts Clears all dynamic shortcuts. Get shortcuts Get the current shortcuts. Some information may be lost, such as iconName, data, etc. Icons To display icons with your shortcuts / actions you will need to add them to your project. Once added use the name of your iOS asset or Android drawable as the value for ico","default_branch":null,"files":null,"tree":[],"storefront":"/r/mouselangelo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mouselangelo/react-native-actions-shortcuts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}