react-native-share 9.0.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # react-native-share [![react-native-share](https://circleci.com/gh/react-native-share/react-native-share.svg?style=svg)](https://app.circleci.com/pipelines/github/react-native-share/react-native-share) [![npm version](https://badge.fury.io/js/react-native-share.svg)](http://badge.fury.io/js/react-native-share) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
2
2
 
3
- React Native Share, a simple tool for share message and file to other apps.
3
+ React Native Share, is a simple tool for sharing messages and files with other apps.
4
4
 
5
5
  # Sponsors
6
6
 
@@ -8,7 +8,7 @@ React Native Share, a simple tool for share message and file to other apps.
8
8
 
9
9
  If you use this library on your commercial/personal projects, you can help us by funding the work on specific issues that you choose by using IssueHunt.io!
10
10
 
11
- This gives you the power to prioritize our work and support the project contributors. Moreover it'll guarantee the project will be updated and maintained in the long run.
11
+ This gives you the power to prioritize our work and support the project contributors. Moreover, it'll guarantee the project will be updated and maintained in the long run.
12
12
 
13
13
  [![issuehunt-image](https://issuehunt.io/static/embed/issuehunt-button-v1.svg)](https://issuehunt.io/repos/43406976)
14
14
 
@@ -16,7 +16,7 @@ This gives you the power to prioritize our work and support the project contribu
16
16
 
17
17
  ---
18
18
 
19
- If you are using `react-native >= 0.60` you just need to do a simple:
19
+ If you are using `react-native >= 0.7X` and/or the new arch you just need to do a simple:
20
20
 
21
21
  ```shell
22
22
  yarn add react-native-share
@@ -28,7 +28,7 @@ Or if are using npm:
28
28
  npm i react-native-share --save
29
29
  ```
30
30
 
31
- After that, we need to install the dependencies to use the project on iOS(you can skip this part, if you are using this on Android).
31
+ After that, we need to install the dependencies to use the project on iOS(you can skip this part if you are using this on Android).
32
32
 
33
33
  Now run a simple: `npx pod-install` or `cd ios && pod install`. After that, you should be able to use the library on both Platforms, iOS and Android.
34
34
 
@@ -0,0 +1,35 @@
1
+ import type { TurboModule } from 'react-native';
2
+ import { TurboModuleRegistry } from 'react-native';
3
+
4
+ export interface Spec extends TurboModule {
5
+ readonly getConstants: () => {
6
+ FACEBOOK?: string;
7
+ FACEBOOKSTORIES?: string;
8
+ TWITTER?: string;
9
+ GOOGLEPLUS?: string;
10
+ WHATSAPP?: string;
11
+ INSTAGRAM?: string;
12
+ INSTAGRAMSTORIES?: string;
13
+ TELEGRAM?: string;
14
+ EMAIL?: string;
15
+ MESSENGER?: string;
16
+ VIBER?: string;
17
+ PAGESMANAGER?: string;
18
+ WHATSAPPBUSINESS?: string;
19
+ PINTEREST?: string;
20
+ LINKEDIN?: string;
21
+ SNAPCHAT?: string;
22
+ SHARE_BACKGROUND_IMAGE?: string;
23
+ SHARE_BACKGROUND_VIDEO?: string;
24
+ SHARE_STICKER_IMAGE?: string;
25
+ SHARE_BACKGROUND_AND_STICKER_IMAGE?: string;
26
+ SMS?: string;
27
+ GENERIC?: string;
28
+ };
29
+ open: (options: Object) => Promise<{ success: boolean; message: string }>;
30
+ shareSingle: (options: Object) => Promise<{ success: boolean; message: string }>;
31
+ isPackageInstalled: (packagename: string) => Promise<boolean>;
32
+ isBase64File: (url: string) => Promise<boolean>;
33
+ }
34
+
35
+ export default TurboModuleRegistry.getEnforcing<Spec>('RNShare');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-share",
3
3
  "description": "Social share, sending simple data to other apps.",
4
- "version": "9.0.0",
4
+ "version": "9.0.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/react-native-community/react-native-share.git"
@@ -16,13 +16,14 @@
16
16
  "files": [
17
17
  "src",
18
18
  "lib",
19
- "!**/__tests__",
20
- "!**/__fixtures__",
21
- "!**/__mocks__",
22
19
  "android",
23
20
  "ios",
24
21
  "windows",
25
- "RNShare.podspec"
22
+ "codegenSpec",
23
+ "RNShare.podspec",
24
+ "!**/__tests__",
25
+ "!**/__fixtures__",
26
+ "!**/__mocks__"
26
27
  ],
27
28
  "devDependencies": {
28
29
  "@babel/core": "^7.12.9",