npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

expo-intent-launcher

4.0.0 • Public • Published

expo-intent-launcher

Provides a way to launch Android intents, e.g. opening a specific activity.

API documentation

Installation

This package is pre-installed in managed Expo projects. You may skip the rest of the installation guide if this applies to you.

For bare React Native projects, you must ensure that you have installed and configured the @unimodules/core package before continuing.

Add the package to your npm dependencies

npm install expo-intent-launcher

Configure for Android

  1. Append the following lines to android/settings.gradle:
include ':expo-intent-launcher'
project(':expo-intent-launcher').projectDir = new File(rootProject.projectDir, '../node_modules/expo-intent-launcher/android')
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:
api project(':expo-intent-launcher')
  1. In MainApplication.java, import the package and add it to the ReactModuleRegistryProvider list:
import expo.modules.intentlauncher.IntentLauncherPackage;
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList(
  // Your other packages will be here 
  new IntentLauncherPackage()
)Arrays.<SingletonModule>asList());

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

install

npm i expo-intent-launcher

Downloadsweekly downloads

98

version

4.0.0

license

MIT

homepage

docs.expo.io

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability