npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

expo-action-extension

v0.1.4

Published

iOS Action Extension support for Expo apps with support for multiple extensions

Downloads

14

Readme

expo-action-extension

iOS Action Extension support for Expo apps. Allows your app to appear in the iOS share sheet as an action extension (via com.apple.ui-services).

Features

  • Multiple action extensions per app
  • Custom icons per extension
  • React Native UI in extensions
  • App group data sharing between main app and extensions
  • Configurable activation rules (URL, text, images, etc.)

Installation

npx expo install expo-action-extension

Configuration

Add the plugin to your app.json or app.config.js:

{
  "expo": {
    "plugins": [
      [
        "expo-action-extension",
        {
          "extensions": [
            {
              "name": "MyAction",
              "icon": "./assets/action-icon.png",
              "activationRules": [
                { "type": "url" },
                { "type": "text" }
              ]
            }
          ]
        }
      ]
    ]
  }
}

Multiple Extensions

You can configure multiple action extensions:

{
  "plugins": [
    [
      "expo-action-extension",
      {
        "extensions": [
          {
            "name": "SaveLink",
            "icon": "./assets/save-icon.png",
            "activationRules": [{ "type": "url" }]
          },
          {
            "name": "ShareText",
            "icon": "./assets/share-icon.png",
            "entryFile": "index.share.js",
            "activationRules": [{ "type": "text" }]
          }
        ]
      }
    ]
  ]
}

Extension Options

| Option | Type | Required | Description | |--------|------|----------|-------------| | name | string | Yes | Display name for the extension | | icon | string | Yes | Path to the extension icon (60x60 recommended) | | activationRules | array | No | When the extension appears in share sheet | | entryFile | string | No | Custom entry file (default: index.action.js) | | moduleName | string | No | Custom module name (default: actionExtension) | | backgroundColor | string | No | Background color for the extension UI | | height | number | No | Height of the extension view | | excludedPackages | array | No | Additional packages to exclude from the extension | | googleServicesFile | string | No | Path to GoogleService-Info.plist |

Activation Rules

| Type | Description | |------|-------------| | url | Activates for shared URLs | | text | Activates for shared text | | image | Activates for shared images | | video | Activates for shared videos | | file | Activates for shared files |

Usage

Entry File

Create an entry file for your extension (e.g., index.action.js):

import { AppRegistry } from "react-native";
import ActionExtension from "./ActionExtension";

AppRegistry.registerComponent("actionExtension", () => ActionExtension);

Extension Component

import React from "react";
import { View, Text, Button } from "react-native";
import { close, openHostApp } from "expo-action-extension";

export default function ActionExtension() {
  return (
    <View style={{ flex: 1, padding: 20 }}>
      <Text>Action Extension</Text>
      <Button title="Open App" onPress={() => openHostApp()} />
      <Button title="Close" onPress={() => close()} />
    </View>
  );
}

Metro Configuration

Update your metro.config.js:

const { getDefaultConfig } = require("expo/metro-config");
const { withActionExtension } = require("expo-action-extension/metro");

const config = getDefaultConfig(__dirname);

module.exports = withActionExtension(config);

API

close()

Closes the action extension.

openHostApp(path?: string)

Opens the host app, optionally navigating to a specific path.

clearAppGroupContainer()

Clears the app group container shared storage.

Building

After configuration, run:

npx expo prebuild --platform ios --clean
npx expo run:ios

License

MIT