Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@config-plugins/react-native-quick-actions

expo448deprecated6.0.0TypeScript support: included

react-native-quick-actions has been archived and is no longer maintained. Use the package expo-quick-actions, and its built-in Expo Config Plugin instead.

Config plugin for react-native-quick-actions package

react, expo, config-plugins, prebuild, react-native-quick-actions

readme

@config-plugins/react-native-quick-actions

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

demo-ios

Expo installation

Tested against Expo SDK 49

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

npx expo install react-native-quick-actions @config-plugins/react-native-quick-actions

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-quick-actions"]
  }
}

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

API

The plugin provides props for extra customization. Every time you change the props or plugins, you'll need to rebuild (and prebuild) the native app. If no extra properties are added, defaults will be used.

iOS only; an array of the objects with the following keys:

  • title: (string): UIApplicationShortcutItemTitle: Name of action (required)
  • type: (string): UIApplicationShortcutItemType: A unique string that the system passes to your app (required)
  • subtitle (string): UIApplicationShortcutItemSubtitle: Subtitle message
  • iconType (string): UIApplicationShortcutItemIconType: List of icon types (ex: "UIApplicationShortcutIconTypeLocation")
  • iconSymbolName (string): UIApplicationShortcutItemIconSymbolName: Name of system icon, here is an unofficial list (ex: "square.stack.3d.up")
  • iconFile (string): UIApplicationShortcutItemIconFile: Name of the resource file (Not supported)
  • userInfo (XML.XMLObject): UIApplicationShortcutItemUserInfo: An optional, app-defined dictionary. One use for this dictionary is to provide app version information, as described in the “App Launch and App Update Considerations for Quick Actions” section of the overview in UIApplicationShortcutItem Class Reference.

Example

{
  "expo": {
    "plugins": [
      [
        "@config-plugins/react-native-quick-actions",
        [
          {
            "title": "Take Photo",
            "type": "photo",
            "iconType": "UIApplicationShortcutIconTypeCapturePhoto"
          }
        ]
      ]
    ]
  }
}

changelog

@config-plugins/react-native-quick-actions 5.0.0

  • Expo SDK 48 support

@config-plugins/react-native-quick-actions 2.0.0 (2022-06-13)

⚠ BREAKING CHANGES

  • add SDK 45 support (#79)

Features

Other chores

  • publish packages [no-ci] (0c7b413)

@config-plugins/react-native-quick-actions 1.0.2 (2022-03-22)

Other chores

@config-plugins/react-native-quick-actions 1.0.1 (2022-03-16)

Continuous Integration

@config-plugins/react-native-quick-actions 1.0.0 (2022-03-15)

Other chores