react-native-reshared v0.3.0
📡 react-native-reshared
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.
Installation
npm install react-native-reshared
# or
yarn add react-native-resharedApply 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-packageThen 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-packageNote: 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