{"id":18484873,"url":"https://github.com/prscx/react-native-add-shortcuts","last_synced_at":"2025-09-08T19:37:35.423Z","repository":{"id":57335028,"uuid":"234484708","full_name":"prscX/react-native-add-shortcuts","owner":"prscX","description":"React Native: Native Add Shortcuts","archived":false,"fork":false,"pushed_at":"2020-05-25T05:49:18.000Z","size":382,"stargazers_count":20,"open_issues_count":7,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T06:57:31.690Z","etag":null,"topics":["android","ios","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prscX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-17T06:22:38.000Z","updated_at":"2024-05-11T06:13:35.000Z","dependencies_parsed_at":"2022-09-11T01:51:16.912Z","dependency_job_id":null,"html_url":"https://github.com/prscX/react-native-add-shortcuts","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-add-shortcuts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-add-shortcuts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-add-shortcuts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-add-shortcuts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prscX","download_url":"https://codeload.github.com/prscX/react-native-add-shortcuts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223342302,"owners_count":17129816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","react-native"],"created_at":"2024-11-06T12:43:26.346Z","updated_at":"2024-11-06T12:43:27.048Z","avatar_url":"https://github.com/prscX.png","language":"Java","funding_links":["https://www.buymeacoffee.com/prscX"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.npmjs.com/package/react-native-add-shortcuts\"\u003e\u003cimg src=\"http://img.shields.io/npm/v/react-native-add-shortcuts.svg?style=flat\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/prscX/react-native-add-shortcuts/pulls\"\u003e\u003cimg alt=\"PRs Welcome\" src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/prscX/react-native-add-shortcuts#License\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/react-native-add-shortcuts.svg?style=flat\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\n    ReactNative: Native Add Shortcuts Library (Android/iOS)\n\nIf this project has helped you out, please support us with a star 🌟\n\n\u003c/h1\u003e\n\nThis library is a React Native bridge around native API's providing capability to add app shortcuts.\n\n\u003e This library is support RN61+\n\n## 📖 Getting started\n\n`$ npm install react-native-add-shortcuts --save`\n\n- Add `react-native-image-helper` your app package.json\n\n`$ npm install react-native-image-helper --save`\n\n- Add `react-native-vector-icons` to your app package.json and configure it as per their installation steps\n\n`$ npm install react-native-vector-icons --save`\n\n- **iOS**\n\n\u003e **iOS Prerequisite:** Please make sure `CocoaPods` is installed on your system\n\n    - Add the following to your `Podfile` -\u003e `ios/Podfile` and run pod update:\n\n```\n  use_native_modules!\n\n  pod 'RNAddShortcuts', :path =\u003e '../node_modules/react-native-add-shortcuts/ios'\n```\n\n- **Android**\n\n\u003e No configuration is required\n\n## 🎨 Usage\n\n- Add Pinned Shortcut\n\n\u003e **Note**: Only support on Android Platform\n\n```\nimport { RNAddShortcuts } from 'react-native-add-shortcuts'\n\nlet copy = (\n    \u003cIcon\n    name=\"copy\"\n    size={30}\n    color=\"#000000\"\n    family={'FontAwesome'}\n    /\u003e\n)\n\nRNAddShortcuts.AddPinnedShortcut({\n    label: 'Copy',\n    description: 'Copy Desc',\n    icon: copy,\n    link: 'app:copy',\n    onDone: () =\u003e {\n        console.log('Shortcut Added');\n    }\n})\n\n```\n\n- Add Dynamic Shortcut\n\n```\nimport { RNAddShortcuts } from 'react-native-add-shortcuts'\n\nlet copy = (\n    \u003cIcon\n    name=\"copy\"\n    size={30}\n    color=\"#000000\"\n    family={'FontAwesome'}\n    /\u003e\n);\n\nRNAddShortcuts.AddDynamicShortcut({\n    label: 'Copy',\n    description: 'Copy Desc',\n    icon: 'copy.png',\n    link: 'app:copy',\n    onDone: () =\u003e {\n        console.log('Shortcut Added');\n    }\n});\n\n```\n\n- Get Dynamic Shortcuts\n\n```\nimport { RNAddShortcuts } from 'react-native-add-shortcuts'\n\nRNAddShortcuts.GetDynamicShortcuts({\n    onDone: shortcuts =\u003e {\n        console.log('Shortcuts: ' + shortcuts);\n    }\n});\n\n```\n\n- Remove All Dynamic Shortcuts\n\n```\nimport { RNAddShortcuts } from 'react-native-add-shortcuts'\n\nRNAddShortcuts.RemoveAllDynamicShortcuts({\n    onDone: () =\u003e {\n        console.log('All Dynamic Shortcuts Removed');\n    }\n})\n\n```\n\n- Pop Dynamic Shortcuts\n\n```\nimport { RNAddShortcuts } from 'react-native-add-shortcuts'\n\nRNAddShortcuts.PopDynamicShortcuts({\n    shortcuts: ['Copy'],\n    onDone: () =\u003e {\n        console.log('Pop Dynamic Shortcuts');\n    }\n})\n\n```\n\n## 💡 Props\n\n- **General(iOS \u0026 Android)**\n\n| Prop                            | Type   | Default | Note                                                      |\n| ------------------------------- | ------ | ------- | --------------------------------------------------------- |\n| `AddPinnedShortcut({})`         | `func` |         | Add Pinned Shortcut (Only supported for Android Platform) |\n| `AddDynamicShortcut({})`        | `func` |         | Add Dynamic Shortcut                                      |\n| `GetDynamicShortcuts({})`       | `func` |         | Get All Dynamic Shortcut                                  |\n| `RemoveAllDynamicShortcuts({})` | `func` |         | Remove All Dynamic Shortcuts                              |\n| `PopDynamicShortcuts({})`       | `func` |         | Delete Specific Dynamic Shortcuts                         |\n\n## ✨ Credits\n\n## 🤔 How to contribute\n\nHave an idea? Found a bug? Please raise to [ISSUES](https://github.com/prscX/react-native-add-shortcuts/issues).\nContributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.\n\n## 💫 Where is this library used?\n\nIf you are using this library in one of your projects, add it in this list below. ✨\n\n## 📜 License\n\nThis library is provided under the Apache 2 License.\n\nRNAppTour @ [prscX](https://github.com/prscX)\n\n## 💖 Support my projects\n\nI open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n- Starring and sharing the projects you like 🚀\n- If you're feeling especially charitable, please follow [prscX](https://github.com/prscX) on GitHub.\n\n  \u003ca href=\"https://www.buymeacoffee.com/prscX\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\n  Thanks! ❤️\n  \u003cbr/\u003e\n  [prscX.github.io](https://prscx.github.io)\n  \u003cbr/\u003e\n  \u003c/ Pranav \u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprscx%2Freact-native-add-shortcuts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprscx%2Freact-native-add-shortcuts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprscx%2Freact-native-add-shortcuts/lists"}