Giter Club home page Giter Club logo

expo-config-plugin-ios-share-extension's Introduction

expo-config-plugin-ios-share-extension

This extension allows you to easily add your applications icon to the iOS share sheet of other applications like Safari. It wil handle (nearly) all the for you, like registering the iOS Share Extension and enables Deep Linking.

Installation

Install it in your project:

expo install expo-config-plugin-ios-share-extension

In your app’s Expo config (app.json, or app.config.js), make sure that expo-config-plugin-ios-share-extension has been added to the list of plugins. Under scheme, define your apps scheme.

"expo": {
  "name": "my-app",
  "scheme": "myapp",
  "plugins": [
      ["expo-config-plugin-ios-share-extension"]
  ]
}

Package version incompatibility

Currently there is a bug in the package xcode this library depends on. For now a workaround is needed, where the xcode package get's patched automatically.

  • Run §npm install --save-dev package-patch§
  • Copy this repo's patch folder to the root of the project
  • Add "postinstall": "patch-package" to the scripts section in package.json.

Usage

To determine which URL was passed to your application, you can read the app open url.

import { useURL } from "expo-linking";
import { Text } from 'react-native';

export default function App() {
  const url = useURL();

  return <Text>URL: {url}</Text>;
}

The format of the url is: [schema]://share/?url=[shared url]

Building

Next, rebuild your app.

eas build --profile development --platform ios

Known limitations

How it works.

TODO

Acknowledgements

This plugin was inspired by:

expo-config-plugin-ios-share-extension's People

Contributors

achorein avatar matthijn avatar timedtext avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.