Socket
Book a DemoInstallSign in
Socket

@config-plugins/react-native-siri-shortcut

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@config-plugins/react-native-siri-shortcut

Config plugin for react-native-siri-shortcut package

Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
390
-10.34%
Maintainers
1
Weekly downloads
 
Created
Source

@config-plugins/react-native-siri-shortcut

Expo Config Plugin to auto-configure react-native-siri-shortcut when the native code is generated (npx expo prebuild).

Expo installation

Tested against Expo SDK 48

This package cannot be used in the "Expo Go" app because it requires custom native code.

  • First install the package with yarn, npm, or npx expo install.
npx expo install react-native-siri-shortcut @config-plugins/react-native-siri-shortcut

After installing this npm package, add the config plugin to the plugins array of your app.json or app.config.js:

{
  "expo": {
    "plugins": ["@config-plugins/react-native-siri-shortcut"]
  }
}

Next, rebuild your app as described in the "Adding custom native code" guide.

API

When working with Siri Shorcuts, you need to define their identifiers on the Xcode project. To achieve the same result using this plugin, just pass an array of strings with the identifiers of your shortcuts, and they will be added automatically during the build cycle:

Example

{
  "expo": {
    "plugins": [
      [
        "@config-plugins/react-native-siri-shortcut",
        ["com.example.InitiateWorkout", "com.example.FinishWorkout"]
      ]
    ]
  }
}

Keywords

react

FAQs

Package last updated on 07 Mar 2023

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