Releases: MaxAst/expo-share-extension
Releases · MaxAst/expo-share-extension
v0.3.0
v0.2.0
v0.1.5
v0.1.4
v.0.1.3
v0.1.2
v.0.1.1
v0.1.0
This initial release contains the following functionality:
- creating an iOS share extension target
- adding the app target and share extension target to a common app group
- opening a custom view powered by React Native when a the share extension is triggered
Usage
- Install the package, e.g. via npm:
npm install expo-share-extension
- Add
expo-share-extension
to the plugins array in yourapp.json
- Update your package.json:
"main": "index.js"
- Create an
index.js
file in the root of your expo project. Register your App component with expo'sregisterRootComponent
and register a separate component that will run in the share extension's custom view using React Native'sAppRegistry
. For example:
import { registerRootComponent } from "expo";
import { AppRegistry } from "react-native";
import App from "./App";
import ShareExtension from "./ShareExtension";
registerRootComponent(App);
AppRegistry.registerComponent("extension", () => ShareExtension);