Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

πŸ“‘ Share content to your React Native app from other apps – fully compatible with Expo [WIP]

License

Notifications You must be signed in to change notification settings

kuatsu/react-native-reshared

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‘ react-native-reshared [DEPRECATED]

Caution

This project is no longer maintained. For Expo, please consider using expo-share-intent instead.

Receive share intents to your React Native app from iOS & Android – fully compatible with Expo

Maintenance npm bundle size GitHub GitHub last commit

Warning

This project is still considered unstable. The API might change drastically in new versions. Please proceed with caution and report any issues you're encountering.

Installation

npm install react-native-reshared
# or
yarn add react-native-reshared

Apply xcode patch

Due to an issue in the cordova-node-xcode project (which @expo/config-plugins relies on), you need to apply a patch to the xcode package which this library installs. Unfortunately, this has to be done manually as react-native-reshared cannot do it for you.

You only need to do this if you're using Expo and the config plugin. If you're using React Native CLI, you can skip this step.

First, install patch-package using your favorite package manager:

npm install -D patch-package
# or
yarn add -D patch-package

Then add the following script to your package.json:

{
  "scripts": {
    "postinstall": "patch-package"
  }
}

Create a patches directory in the root of your project and add a file called xcode+3.0.1.patch. Copy the contents of the same file from this repository into it. Finally, run patch-package to apply the patch:

npx patch-package
# or
yarn patch-package

Tip

There's an open issue in the Expo repository regarding this problem. Once it's resolved, this step will no longer be necessary.

Documentation

The documentation is located here.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Attribution

This project is heavily based on some great, though mostly unmaintained libraries:

The codebases of these libraries were used as a starting point for this project. They have been merged together, updated, cleaned up, documented and extended with new features.

License

MIT