Skip to content

Commit

Permalink
Add SHARE_TARGET_PICKER_FIXED_ARGUMENT_LIST constant
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuma0129 committed Aug 13, 2024
1 parent 3d7ed11 commit ead8198
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
export const SHARE_TARGET_PICKER_FIXED_ARGUMENT_LIST = [
{
label: 'text',
value: {
type: 'text',
text: 'Hello, World!',
},
},
{
label: 'sticker',
value: {
type: 'sticker',
packageId: '446',
stickerId: '1988',
},
},
{
label: 'image',
value: {
type: 'image',
originalContentUrl: 'https://example.com/original.jpg',
previewImageUrl: 'https://example.com/preview.jpg',
},
},
{
label: 'video',
value: {
type: 'video',
originalContentUrl: 'https://example.com/original.mp4',
previewImageUrl: 'https://example.com/preview.jpg',
trackingId: 'track-id',
},
},
{
label: 'audio',
value: {
type: 'audio',
originalContentUrl: 'https://example.com/original.m4a',
duration: 60000,
},
},
{
label: 'location',
value: {
type: 'location',
title: 'my location',
address: '〒102-8282 東京都千代田区紀尾井町1番3号',
latitude: 35.67966,
longitude: 139.73669,
},
},
].map(({ label, value }) => ({
label,
value: JSON.stringify(value, null, 4),
}))

0 comments on commit ead8198

Please sign in to comment.