Skip to content

Commit ead8198

Browse files
committed
Add SHARE_TARGET_PICKER_FIXED_ARGUMENT_LIST constant
1 parent 3d7ed11 commit ead8198

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

src/constants.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
export const SHARE_TARGET_PICKER_FIXED_ARGUMENT_LIST = [
2+
{
3+
label: 'text',
4+
value: {
5+
type: 'text',
6+
text: 'Hello, World!',
7+
},
8+
},
9+
{
10+
label: 'sticker',
11+
value: {
12+
type: 'sticker',
13+
packageId: '446',
14+
stickerId: '1988',
15+
},
16+
},
17+
{
18+
label: 'image',
19+
value: {
20+
type: 'image',
21+
originalContentUrl: 'https://example.com/original.jpg',
22+
previewImageUrl: 'https://example.com/preview.jpg',
23+
},
24+
},
25+
{
26+
label: 'video',
27+
value: {
28+
type: 'video',
29+
originalContentUrl: 'https://example.com/original.mp4',
30+
previewImageUrl: 'https://example.com/preview.jpg',
31+
trackingId: 'track-id',
32+
},
33+
},
34+
{
35+
label: 'audio',
36+
value: {
37+
type: 'audio',
38+
originalContentUrl: 'https://example.com/original.m4a',
39+
duration: 60000,
40+
},
41+
},
42+
{
43+
label: 'location',
44+
value: {
45+
type: 'location',
46+
title: 'my location',
47+
address: '〒102-8282 東京都千代田区紀尾井町1番3号',
48+
latitude: 35.67966,
49+
longitude: 139.73669,
50+
},
51+
},
52+
].map(({ label, value }) => ({
53+
label,
54+
value: JSON.stringify(value, null, 4),
55+
}))

0 commit comments

Comments
 (0)