Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@fugood/react-native-intent-launcher

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fugood/react-native-intent-launcher

Android Intent launcher

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
5
Created
Source

@fugood/react-native-intent-launcher

Android Intent launcher

Installation

npm install @fugood/react-native-intent-launcher

Usage

import { startActivity, startService } from '@fugood/react-native-intent-launcher';

// Start an activity
startActivity({
  action: 'android.settings.SETTINGS',
}).then((result) => {
  console.log('Activity result:', result);
});

// Start an activity with data, extras, and specific component
startActivity({
  action: 'android.intent.action.VIEW',
  data: 'https://www.google.com',
  extra: {
    'key': 'value',
  },
  // Optional: target specific package/class
  // packageName: 'com.android.chrome',
  // className: 'com.google.android.apps.chrome.Main',
}).then((result) => {
  console.log('Activity finished with result:', result);
});

// Start a service
startService({
  action: 'com.example.MY_SERVICE',
}).then(() => {
  console.log('Service started');
}).catch((e) => {
  console.error('Failed to start service:', e);
});

API

startActivity(params: IntentParams): Promise<ActivityResult>

Starts an Android activity with the given parameters. Returns a Promise that resolves with the activity result.

startService(params: IntentParams): Promise<void>

Starts an Android service with the given parameters.

IntentParams

| Property | Type | Description | |Data | | | | action | string | The intent action, e.g., android.intent.action.VIEW. | | data | string | The intent data URI. | | type | string | The intent MIME type. | | category | string | The intent category. | | extra | Object | Key-value pairs for intent extras. | | packageName | string | The package name of the component. | | className | string | The class name of the component. | | flags | number | Intent flags (integer). | | foreground | boolean | If true, use startForegroundService on Android 8.0+. |

ActivityResult

| Property | Type | Description | | resultCode | number | The result code returned by the activity. | | data | string | The result data URI, if any. | | extra | Object | The result extras, if any. |

Contributing

  • Development workflow
  • Sending a pull request
  • Code of conduct

License

MIT

Built and maintained by BRICKS.

Keywords

react-native

FAQs

Package last updated on 16 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts