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
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.
npm install react-native-reshared
# or
yarn add react-native-reshared
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.
The documentation is located here.
See the contributing guide to learn how to contribute to the repository and the development workflow.
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.
MIT