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

> Config plugin for react-native-quick-actions package

Latest version **6.0.0** (published 2023-07-14) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @config-plugins/react-native-quick-actions
pnpm add @config-plugins/react-native-quick-actions
yarn add @config-plugins/react-native-quick-actions
bun add @config-plugins/react-native-quick-actions
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2023-07-14 |
| First published | 2021-07-13 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | evanbacon |
| Keywords | react, expo, config-plugins, prebuild, react-native-quick-actions |

## Links

- npm: https://www.npmjs.com/package/@config-plugins/react-native-quick-actions
- Repository: https://github.com/expo/config-plugins
- Homepage: https://github.com/expo/config-plugins#readme
- Issues: https://github.com/expo/config-plugins/issues
- npm.io page: https://npm.io/package/@config-plugins/react-native-quick-actions

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 6.0.0 (latest) — 2023-07-14
- 5.0.0 — 2023-03-07
- 4.0.0 — 2022-11-17
- 3.0.0 — 2022-08-08
- 2.0.0 — 2022-05-13
- 1.0.2 — 2022-03-22
- 1.0.1 — 2022-03-16
- 1.0.0 — 2022-03-15
- 0.0.1 — 2021-11-23
- 0.0.0 — 2021-07-13

## README

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

Expo Config Plugin to auto-configure [`react-native-quick-actions`](https://www.npmjs.com/package/react-native-quick-actions) when the native code is generated (`npx expo prebuild`).

![demo-ios](https://user-images.githubusercontent.com/9664363/125181024-15295c00-e1be-11eb-8479-80535922ad22.png)

## Expo installation

> Tested against Expo SDK 49

This package cannot be used in the "Expo Go" app because [it requires custom native code](https://docs.expo.io/workflow/customizing/).

- First install the package with yarn, npm, or [`npx expo install`](https://docs.expo.io/workflow/expo-cli/#expo-install).

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

After installing this npm package, add the [config plugin](https://docs.expo.io/guides/config-plugins/) to the [`plugins`](https://docs.expo.io/versions/latest/config/app/#plugins) array of your `app.json` or `app.config.js`:

```json
{
  "expo": {
    "plugins": ["@config-plugins/react-native-quick-actions"]
  }
}
```

Next, rebuild your app as described in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) 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](https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/#home-screen-quick-action-icons) (ex: "UIApplicationShortcutIconTypeLocation")
- `iconSymbolName` (_string_): `UIApplicationShortcutItemIconSymbolName`: Name of system icon, here is an [unofficial list](https://github.com/cyanzhong/sf-symbols-online) (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

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

---
_Source: https://npm.io/package/@config-plugins/react-native-quick-actions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
