react-native-share 8.2.2 → 9.0.0

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.
Files changed (81) hide show
  1. package/RNShare.podspec +18 -1
  2. package/android/build.gradle +16 -0
  3. package/android/src/main/java/cl/json/{RNShareModule.java → RNShareImpl.java} +52 -60
  4. package/android/src/main/java/cl/json/RNSharePackage.java +34 -17
  5. package/android/src/main/java/cl/json/social/FacebookStoriesShare.java +1 -1
  6. package/android/src/main/java/cl/json/social/InstagramShare.java +7 -1
  7. package/android/src/main/java/cl/json/social/InstagramStoriesShare.java +1 -1
  8. package/android/src/main/java/cl/json/social/ShareIntent.java +11 -6
  9. package/android/src/main/java/cl/json/social/SingleShareIntent.java +15 -6
  10. package/android/src/main/java/cl/json/social/TargetChosenReceiver.java +23 -17
  11. package/android/src/newarch/cl/json/RNShare.java +55 -0
  12. package/android/src/oldarch/cl/json/RNShare.java +52 -0
  13. package/ios/EmailShare.h +1 -1
  14. package/ios/EmailShare.m +5 -5
  15. package/ios/FacebookStories.h +1 -1
  16. package/ios/FacebookStories.m +4 -4
  17. package/ios/GenericShare.h +1 -1
  18. package/ios/GenericShare.m +5 -5
  19. package/ios/GooglePlusShare.h +1 -1
  20. package/ios/GooglePlusShare.m +4 -4
  21. package/ios/InstagramShare.h +3 -3
  22. package/ios/InstagramShare.m +16 -16
  23. package/ios/InstagramStories.h +1 -1
  24. package/ios/InstagramStories.m +4 -4
  25. package/ios/MessengerShare.h +1 -1
  26. package/ios/MessengerShare.m +3 -3
  27. package/ios/RNShare.h +16 -2
  28. package/ios/{RNShare.m → RNShare.mm} +71 -25
  29. package/ios/TelegramShare.h +1 -1
  30. package/ios/TelegramShare.m +4 -4
  31. package/ios/ViberShare.h +1 -1
  32. package/ios/ViberShare.m +4 -4
  33. package/ios/WhatsAppShare.h +1 -1
  34. package/ios/WhatsAppShare.m +8 -8
  35. package/lib/commonjs/components/Button.js +21 -25
  36. package/lib/commonjs/components/Button.js.map +1 -1
  37. package/lib/commonjs/components/Overlay.js +7 -15
  38. package/lib/commonjs/components/Overlay.js.map +1 -1
  39. package/lib/commonjs/components/ShareSheet.js +10 -21
  40. package/lib/commonjs/components/ShareSheet.js.map +1 -1
  41. package/lib/commonjs/components/Sheet.js +7 -13
  42. package/lib/commonjs/components/Sheet.js.map +1 -1
  43. package/lib/commonjs/helpers/requireAndAskPermissions.js +6 -16
  44. package/lib/commonjs/helpers/requireAndAskPermissions.js.map +1 -1
  45. package/lib/commonjs/index.js +40 -68
  46. package/lib/commonjs/index.js.map +1 -1
  47. package/lib/commonjs/types.js +9 -12
  48. package/lib/commonjs/types.js.map +1 -1
  49. package/lib/module/components/Button.js +19 -18
  50. package/lib/module/components/Button.js.map +1 -1
  51. package/lib/module/components/Overlay.js +5 -7
  52. package/lib/module/components/Overlay.js.map +1 -1
  53. package/lib/module/components/ShareSheet.js +8 -10
  54. package/lib/module/components/ShareSheet.js.map +1 -1
  55. package/lib/module/components/Sheet.js +5 -6
  56. package/lib/module/components/Sheet.js.map +1 -1
  57. package/lib/module/helpers/requireAndAskPermissions.js +6 -15
  58. package/lib/module/helpers/requireAndAskPermissions.js.map +1 -1
  59. package/lib/module/index.js +31 -50
  60. package/lib/module/index.js.map +1 -1
  61. package/lib/module/types.js +8 -9
  62. package/lib/module/types.js.map +1 -1
  63. package/lib/typescript/codegenSpec/NativeRNShare.d.ts +39 -0
  64. package/lib/typescript/{index.d.ts → src/index.d.ts} +17 -17
  65. package/lib/typescript/{types.d.ts → src/types.d.ts} +1 -0
  66. package/package.json +11 -3
  67. package/src/helpers/requireAndAskPermissions.ts +9 -9
  68. package/src/index.tsx +46 -60
  69. package/src/types.ts +1 -0
  70. package/CHANGELOG.md +0 -133
  71. package/lib/commonjs/typings/react-native.d.js +0 -4
  72. package/lib/commonjs/typings/react-native.d.js.map +0 -1
  73. package/lib/module/typings/react-native.d.js +0 -2
  74. package/lib/module/typings/react-native.d.js.map +0 -1
  75. package/src/typings/react-native.d.ts +0 -58
  76. package/windows/.gitignore +0 -92
  77. /package/lib/typescript/{components → src/components}/Button.d.ts +0 -0
  78. /package/lib/typescript/{components → src/components}/Overlay.d.ts +0 -0
  79. /package/lib/typescript/{components → src/components}/ShareSheet.d.ts +0 -0
  80. /package/lib/typescript/{components → src/components}/Sheet.d.ts +0 -0
  81. /package/lib/typescript/{helpers → src/helpers}/requireAndAskPermissions.d.ts +0 -0
package/CHANGELOG.md DELETED
@@ -1,133 +0,0 @@
1
- ### Note
2
-
3
- Now we are using semantic-release to handle the changelog for this package and their release. You can look at the entire change-log of each release [here](https://github.com/react-native-community/react-native-share/releases).
4
-
5
- ## 3.0.0-4 (2020-01-16)
6
-
7
- ##### Build System / Dependencies
8
-
9
- - **deps:** bump eslint-utils from 1.4.0 to 1.4.2 ([#580](https://github.com/react-native-community/react-native-share/pull/580)) ([62dd4ab3](https://github.com/react-native-community/react-native-share/commit/62dd4ab3ff0832fe99f37013422d5e4d35357482))
10
- - use react-native-share git master as dependency for RN60 example ([b5eb9d36](https://github.com/react-native-community/react-native-share/commit/b5eb9d365bf23c8e0d8e739957466311caebbdcd))
11
-
12
- ##### Chores
13
-
14
- - **readme:** mocking with Jest example ([#610](https://github.com/react-native-community/react-native-share/pull/610)) ([796ac3a6](https://github.com/react-native-community/react-native-share/commit/796ac3a6e3dd000a3fef36bd8ead4d21483e3289))
15
- - **lint:** fixing lint errors ([4e78f355](https://github.com/react-native-community/react-native-share/commit/4e78f355da44abe84a790d20eddf58629758056e))
16
- - update example to use internal file provider, RN60 autolink works ([aa126048](https://github.com/react-native-community/react-native-share/commit/aa126048206c60291a0e3bb9024542b23abab4af))
17
- - use older flow package, run yarn ([bdee601d](https://github.com/react-native-community/react-native-share/commit/bdee601d3bc3ccbfc513d49f52cb1b2f2456e335))
18
- - fix react version to template versions ([70b0fa38](https://github.com/react-native-community/react-native-share/commit/70b0fa38d88499ae521b390eeef8cccf81ee43e9))
19
- - update gradle wrapper and distribution to 3.5.0/5.6.1-all ([81bf5612](https://github.com/react-native-community/react-native-share/commit/81bf5612298d4ba224705517a37518e5e00575ab))
20
- - update gradle in main project ([5d459e78](https://github.com/react-native-community/react-native-share/commit/5d459e7882ddbd78966f9b0018152ec2a9bbffbc))
21
- - update dependencies and actually port example to RN60 ([2ccc244a](https://github.com/react-native-community/react-native-share/commit/2ccc244ad4a356b0f7296a867d4cebb27d1d869c))
22
- - Adding es6 default export e export with destructing ([018d2a3b](https://github.com/react-native-community/react-native-share/commit/018d2a3b4e3b2e85acbe1aa664b68e4a9312b44b))
23
- - **ShareIntent:** indentation fix ([43fe0b51](https://github.com/react-native-community/react-native-share/commit/43fe0b51eb8697730a864f27eb9bcd4b6df60c90))
24
-
25
- ##### Continuous Integration
26
-
27
- - **fix:** adapt to new workflow ([#626](https://github.com/react-native-community/react-native-share/pull/626)) ([f706e8ca](https://github.com/react-native-community/react-native-share/commit/f706e8cae5b21079c2716998911ad86e0cd1e8ac))
28
-
29
- ##### Bug Fixes
30
-
31
- - removing lint errors ([a977d1f8](https://github.com/react-native-community/react-native-share/commit/a977d1f8bf38c0f9a37571dd2b039ef34b20db6c))
32
- - added missing "v" to `source` field in podspec ([#619](https://github.com/react-native-community/react-native-share/pull/619)) ([d88e542d](https://github.com/react-native-community/react-native-share/commit/d88e542ddd0983d09a4aa1a82737bb05b5731801))
33
- - remove uncessary tools replace on build gradle ([9ad34367](https://github.com/react-native-community/react-native-share/commit/9ad3436701f7799c47f1d861ed78cb604066fbb9))
34
- - instagram-stories build failure ([56f50cc9](https://github.com/react-native-community/react-native-share/commit/56f50cc9eb2ed0ccb0dfa8957cee478e47d76f74))
35
- - update jest to fix known security vulnerabilities ([#577](https://github.com/react-native-community/react-native-share/pull/577)) ([f6c6105b](https://github.com/react-native-community/react-native-share/commit/f6c6105b38e33de9f9af8be9c9cfc604b8eb8959))
36
- - remove redundant dependency ([48492907](https://github.com/react-native-community/react-native-share/commit/48492907e08764dc686877e036f0b9fb9ce6b463))
37
- - use the template support version ([1d7bf06d](https://github.com/react-native-community/react-native-share/commit/1d7bf06dc9618fdeec8fd17dd655f4ff1e0b3b91))
38
- - remove non-template gradle properties caching/parallel ([85426520](https://github.com/react-native-community/react-native-share/commit/854265201b04883042b230037b36b897494b3835))
39
- - .iml files are in .gitignore and should not be committed ([d7b60a50](https://github.com/react-native-community/react-native-share/commit/d7b60a50ca510b3a1d342690ca64ced720b39c84))
40
- - remove version from flowconfig ([5c8b2e37](https://github.com/react-native-community/react-native-share/commit/5c8b2e37a50a5b6ca5cd98bf4e8a9a8cc6edb14b))
41
- - social should be optional in android ([abad39db](https://github.com/react-native-community/react-native-share/commit/abad39dbbade5ca42e0f940bf3a901efdf7be771))
42
-
43
- ##### Other Changes
44
-
45
- - Resolve promise if ShareSheet is manually dismissed ([#607](https://github.com/react-native-community/react-native-share/pull/607)) ([736a8ace](https://github.com/react-native-community/react-native-share/commit/736a8ace926f0eade649c9ae516ace06c4675e22))
46
-
47
- #### 1.2.1-5 (2019-05-29)
48
-
49
- ##### Chores
50
-
51
- - **codeowners:** add CODEOWNERS file ([ac67e5cd](https://github.com/react-native-community/react-native-share/commit/ac67e5cd9531e5d554b7b9ac0217c777e4d8f9c4))
52
-
53
- ### 1.2.0-4 (2019-05-26)
54
-
55
- ##### Build System / Dependencies
56
-
57
- - fix all deprecation and lint in ShareFile(s) ([#374](https://github.com/react-native-community/react-native-share/pull/374)) ([67fb59e9](https://github.com/react-native-community/react-native-share/commit/67fb59e9dc7ec9f98ad76f6809dbc98d240c451e))
58
-
59
- ##### Chores
60
-
61
- - **npmignore:**
62
- - add .github folder to npmignore ([fc219481](https://github.com/react-native-community/react-native-share/commit/fc2194818c7dba4dd913dd5c65564113ef575a6a))
63
- - add changelog.js ([8256431b](https://github.com/react-native-community/react-native-share/commit/8256431be2526a55b625b72f4727d8dd8af20aee))
64
- - **changelog:** update changelog.js ([85a91b05](https://github.com/react-native-community/react-native-share/commit/85a91b05993eaaf5e897815029bf58d0944ed3cb))
65
- - Adding instructions about how use the master branch ([c1c58b87](https://github.com/react-native-community/react-native-share/commit/c1c58b876b718bce033593ad52e7fc62fdb32065))
66
- - update iOS target to 9.0 to match react-native min version ([f72dbe1a](https://github.com/react-native-community/react-native-share/commit/f72dbe1a44105a0d04f3af03a7556ea123024493))
67
-
68
- ##### New Features
69
-
70
- - **deps:** update deps and prepare for release ([#501](https://github.com/react-native-community/react-native-share/pull/501)) ([05c2b6a1](https://github.com/react-native-community/react-native-share/commit/05c2b6a1aeb74853ef16265f690b3ba48cd0198f))
71
-
72
- #### 1.1.3-3 (2018-10-23)
73
-
74
- ##### Build System / Dependencies
75
-
76
- - reverse dep order, google then jcenter ([#387](https://github.com/react-native-community/react-native-share/pull/387)) ([2c91ecce](https://github.com/react-native-community/react-native-share/commit/2c91ecceda3abe182fa500a6bcd2b09e0b5fd4e5))
77
- - upgrade android dependencies, example depend on upstream ([#373](https://github.com/react-native-community/react-native-share/pull/373)) ([28e62b15](https://github.com/react-native-community/react-native-share/commit/28e62b1526b2242a474b9b7f3a4dd213d2ec3554))
78
-
79
- ##### Bug Fixes
80
-
81
- - **classes-not-exported:** fix classes not exported warning ([540aa8fe](https://github.com/react-native-community/react-native-share/commit/540aa8fe68ede1ac4bfa79698dabe78448b59cc3))
82
-
83
- #### 1.1.2-2 (2018-09-12)
84
-
85
- #### 1.1.1-1 (2018-08-07)
86
-
87
- ##### New Features
88
-
89
- - **issue-template:** add issue template ([fde759f8](https://github.com/react-native-community/react-native-share/commit/fde759f8412687d7a70a1fca1a848839fb57df51))
90
-
91
- #### 1.1.0 (2018-07-25)
92
-
93
- ##### Build System / Dependencies
94
-
95
- - **idx:** add idx as dev dep and improve flow ([eba00817](https://github.com/react-native-community/react-native-share/commit/eba008177c0157f606c14fb13305039dc3058576))
96
-
97
- ##### Chores
98
-
99
- - **readme:** update readme with circle ci status badge ([1a789ffe](https://github.com/react-native-community/react-native-share/commit/1a789ffe51f73a50775d49da1687dbe677faae18))
100
-
101
- ##### New Features
102
-
103
- - **README:** add pagesmanager only android ([cb206d64](https://github.com/react-native-community/react-native-share/commit/cb206d643913c292b668a8b651580c83a77ccfd7))
104
- - **gradle-3:**
105
- - fix circle script ([5c20929d](https://github.com/react-native-community/react-native-share/commit/5c20929d8fb51fbe08a2bef7d39fd5cb985f39aa))
106
- - rollback compile and add gradlew clean to circle ([c4bece4f](https://github.com/react-native-community/react-native-share/commit/c4bece4f9a16624a9ef357a5aa7162563ae684ac))
107
- - rollback to compile ([32217f7f](https://github.com/react-native-community/react-native-share/commit/32217f7f60d9fc8dd07b924b928f8070f30f6b68))
108
- - fix build.gradle ([6544b5b5](https://github.com/react-native-community/react-native-share/commit/6544b5b5263a337a5c64df3cedd73bf98ae6d6c1))
109
- - add gradle ([73ed033d](https://github.com/react-native-community/react-native-share/commit/73ed033debdd7f76e53e87866512e57a60dd2fc3))
110
- - **circl-flow-eslint:**
111
- - fix circle ci yml file name ([2983b13a](https://github.com/react-native-community/react-native-share/commit/2983b13abf61ad3baf9bf7e98074cc4890ea1d87))
112
- - fix circle ci yml file name ([7d78542d](https://github.com/react-native-community/react-native-share/commit/7d78542d2f563e068cba7f515fa6eed2d56a6406))
113
- - **circle-flow-eslint:** first atempt add circle, add flow, eslint and prettier ([44ac820e](https://github.com/react-native-community/react-native-share/commit/44ac820e77bc90f331490320a509a52d630272b2))
114
- - **social:** add social facebook pages manager ([2537d3fe](https://github.com/react-native-community/react-native-share/commit/2537d3fe8104972014716535ffcdbc3157cb56c0))
115
- - update format ([a32ed6cd](https://github.com/react-native-community/react-native-share/commit/a32ed6cd5a13b90293c6e79c239b16085be52104))
116
- - update readme for url format ([dda13853](https://github.com/react-native-community/react-native-share/commit/dda138536f5d7f27236e95274698cb2766fbfdfe))
117
-
118
- ##### Bug Fixes
119
-
120
- - **changelog:** fallback changelog script ([b635de04](https://github.com/react-native-community/react-native-share/commit/b635de044ce3931a85156fe3c5a23b67c98f0317))
121
- - **flow:** use Node and add CHANGELOG.md ([ed6fcd32](https://github.com/react-native-community/react-native-share/commit/ed6fcd32d398968de7b07dafb6d736ade10525d7))
122
- - **social:** rename file FacebookPagesManager to FacebookPagesManagerShare ([ac25bcad](https://github.com/react-native-community/react-native-share/commit/ac25bcad51a2ae9e0b1b2658de66d1cc06ab83f6))
123
-
124
- ##### Other Changes
125
-
126
- - version ([3f01bb15](https://github.com/react-native-community/react-native-share/commit/3f01bb15f45f684ece157cb00b5c1c10383975ba))
127
- - version ([a708692c](https://github.com/react-native-community/react-native-share/commit/a708692ca18102f84c7012edc4c7460a131cef92))
128
- - version ([77f4d80a](https://github.com/react-native-community/react-native-share/commit/77f4d80acc750a0edd179e85c3e4e9847c42dca6))
129
- - google plus sharing android ([7c6a65f7](https://github.com/react-native-community/react-native-share/commit/7c6a65f76819020d55ca6d95320b0cb1d0060849))
130
- - version 1.0.23 ([9a9f94dd](https://github.com/react-native-community/react-native-share/commit/9a9f94ddbf5a33c9d7afba669dfae73773fe86b2))
131
- - version ([672d6962](https://github.com/react-native-community/react-native-share/commit/672d6962c006e9b52a0a889ce9ff958734f84070))
132
- - email share ([1faeac79](https://github.com/react-native-community/react-native-share/commit/1faeac7914bf1437a7c289bd3922de4fd5e35db4))
133
- - local files shared in android ([797dc89c](https://github.com/react-native-community/react-native-share/commit/797dc89cb7368011ccda74c4b7ff585186e9304a))
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- require("react-native");
4
- //# sourceMappingURL=react-native.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["react-native.d.ts"],"names":[],"mappings":";;AAAA","sourcesContent":["import 'react-native';\n\nimport { ShareAsset, ShareSingleOptions, ShareOptions, Social } from '../types';\n\ndeclare module 'react-native' {\n export interface RNShare {\n FACEBOOK: Social.Facebook;\n FACEBOOKSTORIES: Social.FacebookStories;\n PAGESMANAGER: Social.Pagesmanager;\n TWITTER: Social.Twitter;\n WHATSAPP: Social.Whatsapp;\n WHATSAPPBUSINESS: Social.Whatsappbusiness;\n INSTAGRAM: Social.Instagram;\n INSTAGRAMSTORIES: Social.InstagramStories;\n GOOGLEPLUS: Social.Googleplus;\n EMAIL: Social.Email;\n PINTEREST: Social.Pinterest;\n LINKEDIN: Social.Linkedin;\n SMS: Social.Sms;\n TELEGRAM: Social.Telegram;\n SNAPCHAT: Social.Snapchat;\n MESSENGER: Social.Messenger;\n VIBER: Social.Viber;\n\n SHARE_BACKGROUND_IMAGE: ShareAsset.BackgroundImage;\n SHARE_BACKGROUND_VIDEO: ShareAsset.BackgroundVideo;\n SHARE_STICKER_IMAGE: ShareAsset.StickerImage;\n SHARE_BACKGROUND_AND_STICKER_IMAGE: ShareAsset.BackgroundAndStickerImage;\n\n open(\n options: ShareOptions,\n errorCallback: (error: string) => void,\n successCallback: (success: boolean, message: string) => void,\n ): Promise<void>;\n\n shareSingle(\n options: ShareSingleOptions,\n errorCallback: (error: string) => void,\n successCallback: (success: boolean, message: string) => void,\n ): Promise<void>;\n\n isPackageInstalled(\n packageName: string,\n errorCallback: (error: string) => void,\n successCallback: (isInstalled: boolean) => void,\n ): Promise<void>;\n\n isBase64File(\n url: string,\n errorCallback: (error: string) => void,\n successCallback: (isBase64: boolean) => void,\n ): Promise<void>;\n }\n\n interface NativeModulesStatic {\n RNShare: RNShare;\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- import 'react-native';
2
- //# sourceMappingURL=react-native.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["react-native.d.ts"],"names":[],"mappings":"AAAA,OAAO,cAAP","sourcesContent":["import 'react-native';\n\nimport { ShareAsset, ShareSingleOptions, ShareOptions, Social } from '../types';\n\ndeclare module 'react-native' {\n export interface RNShare {\n FACEBOOK: Social.Facebook;\n FACEBOOKSTORIES: Social.FacebookStories;\n PAGESMANAGER: Social.Pagesmanager;\n TWITTER: Social.Twitter;\n WHATSAPP: Social.Whatsapp;\n WHATSAPPBUSINESS: Social.Whatsappbusiness;\n INSTAGRAM: Social.Instagram;\n INSTAGRAMSTORIES: Social.InstagramStories;\n GOOGLEPLUS: Social.Googleplus;\n EMAIL: Social.Email;\n PINTEREST: Social.Pinterest;\n LINKEDIN: Social.Linkedin;\n SMS: Social.Sms;\n TELEGRAM: Social.Telegram;\n SNAPCHAT: Social.Snapchat;\n MESSENGER: Social.Messenger;\n VIBER: Social.Viber;\n\n SHARE_BACKGROUND_IMAGE: ShareAsset.BackgroundImage;\n SHARE_BACKGROUND_VIDEO: ShareAsset.BackgroundVideo;\n SHARE_STICKER_IMAGE: ShareAsset.StickerImage;\n SHARE_BACKGROUND_AND_STICKER_IMAGE: ShareAsset.BackgroundAndStickerImage;\n\n open(\n options: ShareOptions,\n errorCallback: (error: string) => void,\n successCallback: (success: boolean, message: string) => void,\n ): Promise<void>;\n\n shareSingle(\n options: ShareSingleOptions,\n errorCallback: (error: string) => void,\n successCallback: (success: boolean, message: string) => void,\n ): Promise<void>;\n\n isPackageInstalled(\n packageName: string,\n errorCallback: (error: string) => void,\n successCallback: (isInstalled: boolean) => void,\n ): Promise<void>;\n\n isBase64File(\n url: string,\n errorCallback: (error: string) => void,\n successCallback: (isBase64: boolean) => void,\n ): Promise<void>;\n }\n\n interface NativeModulesStatic {\n RNShare: RNShare;\n }\n}\n"]}
@@ -1,58 +0,0 @@
1
- import 'react-native';
2
-
3
- import { ShareAsset, ShareSingleOptions, ShareOptions, Social } from '../types';
4
-
5
- declare module 'react-native' {
6
- export interface RNShare {
7
- FACEBOOK: Social.Facebook;
8
- FACEBOOKSTORIES: Social.FacebookStories;
9
- PAGESMANAGER: Social.Pagesmanager;
10
- TWITTER: Social.Twitter;
11
- WHATSAPP: Social.Whatsapp;
12
- WHATSAPPBUSINESS: Social.Whatsappbusiness;
13
- INSTAGRAM: Social.Instagram;
14
- INSTAGRAMSTORIES: Social.InstagramStories;
15
- GOOGLEPLUS: Social.Googleplus;
16
- EMAIL: Social.Email;
17
- PINTEREST: Social.Pinterest;
18
- LINKEDIN: Social.Linkedin;
19
- SMS: Social.Sms;
20
- TELEGRAM: Social.Telegram;
21
- SNAPCHAT: Social.Snapchat;
22
- MESSENGER: Social.Messenger;
23
- VIBER: Social.Viber;
24
-
25
- SHARE_BACKGROUND_IMAGE: ShareAsset.BackgroundImage;
26
- SHARE_BACKGROUND_VIDEO: ShareAsset.BackgroundVideo;
27
- SHARE_STICKER_IMAGE: ShareAsset.StickerImage;
28
- SHARE_BACKGROUND_AND_STICKER_IMAGE: ShareAsset.BackgroundAndStickerImage;
29
-
30
- open(
31
- options: ShareOptions,
32
- errorCallback: (error: string) => void,
33
- successCallback: (success: boolean, message: string) => void,
34
- ): Promise<void>;
35
-
36
- shareSingle(
37
- options: ShareSingleOptions,
38
- errorCallback: (error: string) => void,
39
- successCallback: (success: boolean, message: string) => void,
40
- ): Promise<void>;
41
-
42
- isPackageInstalled(
43
- packageName: string,
44
- errorCallback: (error: string) => void,
45
- successCallback: (isInstalled: boolean) => void,
46
- ): Promise<void>;
47
-
48
- isBase64File(
49
- url: string,
50
- errorCallback: (error: string) => void,
51
- successCallback: (isBase64: boolean) => void,
52
- ): Promise<void>;
53
- }
54
-
55
- interface NativeModulesStatic {
56
- RNShare: RNShare;
57
- }
58
- }
@@ -1,92 +0,0 @@
1
- *AppPackages*
2
- *BundleArtifacts*
3
-
4
- #OS junk files
5
- [Tt]humbs.db
6
- *.DS_Store
7
-
8
- #Visual Studio files
9
- *.[Oo]bj
10
- *.user
11
- *.aps
12
- *.pch
13
- *.vspscc
14
- *.vssscc
15
- *_i.c
16
- *_p.c
17
- *.ncb
18
- *.suo
19
- *.tlb
20
- *.tlh
21
- *.bak
22
- *.[Cc]ache
23
- *.ilk
24
- *.log
25
- *.lib
26
- *.sbr
27
- *.sdf
28
- *.opensdf
29
- *.opendb
30
- *.unsuccessfulbuild
31
- ipch/
32
- [Oo]bj/
33
- [Bb]in
34
- [Dd]ebug*/
35
- [Rr]elease*/
36
- Ankh.NoLoad
37
-
38
- # Visual C++ cache files
39
- ipch/
40
- *.aps
41
- *.ncb
42
- *.opendb
43
- *.opensdf
44
- *.sdf
45
- *.cachefile
46
- *.VC.db
47
- *.VC.VC.opendb
48
-
49
- #MonoDevelop
50
- *.pidb
51
- *.userprefs
52
-
53
- #Tooling
54
- _ReSharper*/
55
- *.resharper
56
- [Tt]est[Rr]esult*
57
- *.sass-cache
58
-
59
- #Project files
60
- [Bb]uild/
61
-
62
- #Subversion files
63
- .svn
64
-
65
- # Office Temp Files
66
- ~$*
67
-
68
- # vim Temp Files
69
- *~
70
-
71
- #NuGet
72
- packages/
73
- *.nupkg
74
-
75
- #ncrunch
76
- *ncrunch*
77
- *crunch*.local.xml
78
-
79
- # visual studio database projects
80
- *.dbmdl
81
-
82
- #Test files
83
- *.testsettings
84
-
85
- #Other files
86
- *.DotSettings
87
- .vs/
88
- *project.lock.json
89
-
90
- #Files generated by the VS build
91
- **/Generated Files/**
92
-