{"_id":"@angelkrak/react-native-intent-launcher","_rev":"4-3d20c02c1f8c841062cc65626b0f19de","name":"@angelkrak/react-native-intent-launcher","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@angelkrak/react-native-intent-launcher","version":"1.0.0","author":{"name":"poberwong"},"license":"MIT","_id":"@angelkrak/react-native-intent-launcher@1.0.0","maintainers":[{"name":"angelkrak","email":"angel-krak@hotmail.com"}],"homepage":"https://github.com/AngelKrak/react-native-intent-launcher#readme","bugs":{"url":"https://github.com/AngelKrak/react-native-intent-launcher/issues"},"dist":{"shasum":"8f967415bd537e8898998f443d6989e44c326a95","tarball":"https://registry.npmjs.org/@angelkrak/react-native-intent-launcher/-/react-native-intent-launcher-1.0.0.tgz","fileCount":10,"integrity":"sha512-Hk24I6mZNwdZtLRWfgc3bnY77WHmxkvg0KfUWN3HtAIGK5lg2mddobCpRRxK3RAtRdnavdQUEnuz5GgWdcc3Gw==","signatures":[{"sig":"MEQCICj1mK0m2VF6I8xUuKo3mpmYjTknkWuJt4u6cMVULGIQAiAqGcG3JGkEaIth2V8txUxyUDYZ5VE45Nqv0eCnnZoQqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":371379},"main":"index.js","gitHead":"fc61d7669c557152e799bc646681f077c6bbe579","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"angelkrak","email":"angel-krak@hotmail.com"},"repository":{"url":"git+https://github.com/AngelKrak/react-native-intent-launcher.git","type":"git"},"_npmVersion":"8.1.0","description":"call native function about intent in react-native android","directories":{},"_nodeVersion":"16.13.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/react-native-intent-launcher_1.0.0_1711417304625_0.40602970043869147","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@angelkrak/react-native-intent-launcher","version":"1.0.1","author":{"name":"poberwong"},"license":"MIT","_id":"@angelkrak/react-native-intent-launcher@1.0.1","maintainers":[{"name":"angelkrak","email":"angel-krak@hotmail.com"}],"homepage":"https://github.com/AngelKrak/react-native-intent-launcher#readme","bugs":{"url":"https://github.com/AngelKrak/react-native-intent-launcher/issues"},"dist":{"shasum":"f20e9aacc0ebc046f33cf2f2f0a283d1b2fdccb2","tarball":"https://registry.npmjs.org/@angelkrak/react-native-intent-launcher/-/react-native-intent-launcher-1.0.1.tgz","fileCount":10,"integrity":"sha512-kNcsHr2iCMOT40IiJHKwZSZeiK4QeAQBxAUqINIPNcMSjhS9XY1sErNSJafUUE2bj0SJbMlYjVDATfRIgeCglQ==","signatures":[{"sig":"MEQCIEWl50M1Wtag0LK6lXNszkDNfR2+PVNpFZTT1L7BiQGqAiARHk+GoASCzSrKP+4lip4Y6PIAVgk2Dbzoiw3zeQI33w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":371071},"main":"index.js","gitHead":"ef4f13d8e4a9fa6639f1e430ee82d1f08140ddec","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"angelkrak","email":"angel-krak@hotmail.com"},"repository":{"url":"git+https://github.com/AngelKrak/react-native-intent-launcher.git","type":"git"},"_npmVersion":"8.1.0","description":"call native function about intent in react-native android","directories":{},"_nodeVersion":"16.13.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/react-native-intent-launcher_1.0.1_1711417927721_0.40644151963439556","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@angelkrak/react-native-intent-launcher","version":"1.0.2","author":{"name":"poberwong"},"license":"MIT","_id":"@angelkrak/react-native-intent-launcher@1.0.2","maintainers":[{"name":"angelkrak","email":"angel-krak@hotmail.com"}],"homepage":"https://github.com/AngelKrak/react-native-intent-launcher#readme","bugs":{"url":"https://github.com/AngelKrak/react-native-intent-launcher/issues"},"dist":{"shasum":"04bfbaf20f8bebb55176b0da9fa06a31ec1a5f93","tarball":"https://registry.npmjs.org/@angelkrak/react-native-intent-launcher/-/react-native-intent-launcher-1.0.2.tgz","fileCount":10,"integrity":"sha512-xrMpxgyfMV8T8YdlskK5J4usWrI5SBcfVWyWwCvbTQ5y5DpXvKZRwNuHNXVcCt1NvZJWtGD2+6ZuR2SqDmMHTw==","signatures":[{"sig":"MEUCIQDgWxF9JGh68RPkQ2GB7nDP27MyimxztR/MOCpKCj185gIgDGodZXM/hEWw6WVQ0gvaqGZ8CsoM4nvhHxsdvR/kiHk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":371008},"main":"index.js","gitHead":"ba2acbd32e3dff5fef4d9e717bed6cf4680b89ca","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"angelkrak","email":"angel-krak@hotmail.com"},"repository":{"url":"git+https://github.com/AngelKrak/react-native-intent-launcher.git","type":"git"},"_npmVersion":"8.1.0","description":"call native function about intent in react-native android","directories":{},"_nodeVersion":"16.13.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/react-native-intent-launcher_1.0.2_1711419288968_0.7004834364412735","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@angelkrak/react-native-intent-launcher","version":"1.0.3","description":"call native function about intent in react-native android","main":"build/index.js","types":"build/index.d.ts","scripts":{"clean":"rm -rf build","build":"npm run clean && tsc -p tsconfig.build.json","prepublishOnly":"npm run build","publish:npm":"npm publish --access public","test":"echo \"Error: no test specified\" && exit 1"},"exports":{".":{"import":"./build/index.js","require":"./build/index.js","types":"./build/index.d.ts"}},"repository":{"type":"git","url":"git+https://github.com/AngelKrak/react-native-intent-launcher.git"},"author":{"name":"poberwong"},"license":"MIT","bugs":{"url":"https://github.com/AngelKrak/react-native-intent-launcher/issues"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"homepage":"https://github.com/AngelKrak/react-native-intent-launcher#readme","peerDependencies":{"react-native":"*"},"devDependencies":{"typescript":"5.9.2"},"_id":"@angelkrak/react-native-intent-launcher@1.0.3","gitHead":"e17a8b8fec8158480e7bdd88979bb38bd0fbbe43","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-mpoAuLPDOtCpE5NvlJAnHjmMb4CySIXv19tWt4v8LaiEz5fGRc8lxk4Wfvh3LZVwKCYqRlv1YKb2aY3j9thWmQ==","shasum":"a3791fbd2e43f599eb8cea99635fadf9802b269d","tarball":"https://registry.npmjs.org/@angelkrak/react-native-intent-launcher/-/react-native-intent-launcher-1.0.3.tgz","fileCount":19,"unpackedSize":60273,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC+tmam/FsqNuJRUjzrtzjFUw+IDT2kUD241Mqs3UlGuQIhAOCBkjtdt+0TQBJdVwVh+ssq63D//yf1U8sIS0/G2fZt"}]},"_npmUser":{"name":"angelkrak","email":"angel-krak@hotmail.com"},"directories":{},"maintainers":[{"name":"angelkrak","email":"angel-krak@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-native-intent-launcher_1.0.3_1758938228405_0.7290344329239788"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-26T01:41:44.553Z","modified":"2025-09-27T01:57:08.862Z","1.0.0":"2024-03-26T01:41:44.865Z","1.0.1":"2024-03-26T01:52:07.920Z","1.0.2":"2024-03-26T02:14:49.177Z","1.0.3":"2025-09-27T01:57:08.667Z"},"bugs":{"url":"https://github.com/AngelKrak/react-native-intent-launcher/issues"},"author":{"name":"poberwong"},"license":"MIT","homepage":"https://github.com/AngelKrak/react-native-intent-launcher#readme","repository":{"type":"git","url":"git+https://github.com/AngelKrak/react-native-intent-launcher.git"},"description":"call native function about intent in react-native android","maintainers":[{"name":"angelkrak","email":"angel-krak@hotmail.com"}],"readme":"# React Native Intent Launcher\n[![npm version](https://badge.fury.io/js/@angelkrak%2Freact-native-intent-launcher.svg)](https://badge.fury.io/js/@angelkrak%2Freact-native-intent-launcher) [![downloads](https://img.shields.io/npm/dt/@angelkrak/react-native-intent-launcher.svg)](https://npmcharts.com/compare/@angelkrak/react-native-intent-launcher?minimal=true) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-brightgreen.svg)](https://github.com/proyecto26/react-native-inappbrowser/graphs/commit-activity) ![MIT](https://img.shields.io/dub/l/vibe-d.svg) ![Platform - Android](https://img.shields.io/badge/platforms-android-lightgrey.svg)\n\ncall native function `startActivity` in react-native\n\n## Description\nYou can call native function `startActivity` in react-native to do something with `Intent` which can only be solved with android native code\n\n## Installation\n\n1. `npm install @angelkrak/react-native-intent-launcher` \n2. `react-native link @angelkrak/react-native-intent-launcher`\n\n## Usage\n```javascript\nimport IntentLauncher from '@angelkrak/react-native-intent-launcher';\n\nIntentLauncher.startActivity({\n\taction: 'android.settings.APPLICATION_DETAILS_SETTINGS',\n\tdata: 'package:com.example'\n})\n\n// check if app is installed by package name\nIntentLauncher.isAppInstalled('com.android.chrome')\n  .then((result) => {\n    console.log('isAppInstalled yes');\n  })\n  .catch((error) => console.warn('isAppInstalled: no', error));\n\n// open another app by package name\nIntentLauncher.startAppByPackageName('com.android.chrome')\n  .then((result) => {\n    console.log('startAppByPackageName started');\n  })\n  .catch((error) => console.warn('startAppByPackageName: could not open', error));\n```\n\n## Usage with IntentLauncherClass.js\nYou can also use IntentLauncherClass.js directly in your project. Here's how to import and use it:\n\n```javascript\nimport { IntentLauncherClass } from '@angelkrak/react-native-intent-launcher'; \n\n// Example of how to launch an activity\nconst params = {\n  action: 'android.settings.APPLICATION_DETAILS_SETTINGS',\n  data: 'package:com.example'\n};\nIntentLauncherClass.startActivity(params);\n\n// Example of how to launch a series of intents sequentially\nconst intents = [\n  { action: 'android.settings.APPLICATION_DETAILS_SETTINGS', data: 'package:com.example' },\n  {\n    action: 'android.intent.action.VIEW',\n    packageName: 'com.android.settings',\n    className: 'com.android.settings.InstalledAppDetails',\n    extra: {\n      'com.android.settings.ApplicationPkgName': \"com.example\",\n      'pkg': \"com.example\"\n    }\n  },\n  'android.settings.MANAGE_APPLICATIONS_SETTINGS',\n  'android.provider.Settings.ACTION_SETTINGS',\n];\nIntentLauncherClass.launchIntents(intents);\n\n// Example of how to check if an application is installed\nconst packageName = 'com.android.chrome'; // Chrome application package\nIntentLauncherClass.isAppInstalled(packageName)\n  .then((result) => {\n    console.log('The application is installed');\n  })\n  .catch((error) => {\n    console.warn('The application is not installed', error);\n  });\n\n// Example of how to start another application by its package name\nconst packageName = 'com.android.chrome'; // Chrome application package\nIntentLauncherClass.startAppByPackageName(packageName)\n  .then((result) => {\n    console.log('The application has been started');\n  })\n  .catch((error) => {\n    console.warn('Failed to start the application', error);\n  });\n```\n\n## Properties\n* `action` String\n* `data` String\n* `category` String\n* `flags` String\n* `extra` Object\n* `packageName` String\n* `className` String\n* `flags` Number\n\nIn the `IntentConstant`, we provide some constants for these properties, you can look up document provided by google to find out property we didn't support currently.\n\n## License\n*MIT*","readmeFilename":"README.md"}