react-native-share 8.0.1 → 8.2.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.
- package/ios/RNShare.m +7 -0
- package/ios/RNShareActivityItemSource.m +1 -1
- package/ios/RNShareUtils.h +1 -0
- package/ios/RNShareUtils.m +11 -0
- package/lib/commonjs/components/Button.js.map +1 -1
- package/lib/commonjs/components/Overlay.js +24 -39
- package/lib/commonjs/components/Overlay.js.map +1 -1
- package/lib/commonjs/components/ShareSheet.js +34 -38
- package/lib/commonjs/components/ShareSheet.js.map +1 -1
- package/lib/commonjs/components/Sheet.js +15 -25
- package/lib/commonjs/components/Sheet.js.map +1 -1
- package/lib/commonjs/index.js +0 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/components/Button.js.map +1 -1
- package/lib/module/components/Overlay.js +24 -39
- package/lib/module/components/Overlay.js.map +1 -1
- package/lib/module/components/ShareSheet.js +32 -36
- package/lib/module/components/ShareSheet.js.map +1 -1
- package/lib/module/components/Sheet.js +15 -25
- package/lib/module/components/Sheet.js.map +1 -1
- package/lib/module/index.js +0 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/components/Button.d.ts +1 -1
- package/lib/typescript/components/Overlay.d.ts +1 -19
- package/lib/typescript/components/ShareSheet.d.ts +2 -8
- package/lib/typescript/components/Sheet.d.ts +1 -11
- package/lib/typescript/index.d.ts +5 -4
- package/lib/typescript/types.d.ts +5 -4
- package/package.json +1 -1
- package/src/components/Button.tsx +7 -1
- package/src/components/Overlay.tsx +17 -30
- package/src/components/ShareSheet.tsx +38 -33
- package/src/components/Sheet.tsx +8 -18
- package/src/index.tsx +0 -1
- package/src/types.ts +6 -4
package/src/types.ts
CHANGED
|
@@ -42,10 +42,10 @@ export interface ActivityItem {
|
|
|
42
42
|
|
|
43
43
|
export interface ActivityItemSource {
|
|
44
44
|
placeholderItem: ActivityItem;
|
|
45
|
-
item: { [key in
|
|
46
|
-
subject?: { [key in
|
|
47
|
-
dataTypeIdentifier?: { [key in
|
|
48
|
-
thumbnailImage?: { [key in
|
|
45
|
+
item: { [key in ActivityTypeItemSource]?: ActivityItem | null | undefined };
|
|
46
|
+
subject?: { [key in ActivityTypeItemSource]?: string };
|
|
47
|
+
dataTypeIdentifier?: { [key in ActivityTypeItemSource]?: string };
|
|
48
|
+
thumbnailImage?: { [key in ActivityTypeItemSource]?: string };
|
|
49
49
|
linkMetadata?: LinkMetadata;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -125,6 +125,8 @@ export type ActivityType =
|
|
|
125
125
|
| 'saveToCameraRoll'
|
|
126
126
|
| 'markupAsPDF'; // iOS 11 or late
|
|
127
127
|
|
|
128
|
+
export type ActivityTypeItemSource = ActivityType | string;
|
|
129
|
+
|
|
128
130
|
export interface ShareSingleResult {
|
|
129
131
|
message: string;
|
|
130
132
|
success: boolean;
|