0.2.2 • Published 7 months ago

react-native-reshared v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

📡 react-native-reshared

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

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

Note: 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

0.2.2

7 months ago

0.2.1

7 months ago

0.2.0

7 months ago