Skip to content

Commit

Permalink
fix: typescript make message optional in Share.open (#1031)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Seppola <sblix.dev@gmail.com>
  • Loading branch information
2 people authored and MateusAndrade committed Jun 6, 2021
1 parent f3ddeac commit 5c16639
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export type ShareSingleOptions =
| FacebookStoriesShareSingleOptions;

export interface ShareOptions {
message: string;
message?: string;
title: string;
url?: string;
urls?: string[];
Expand Down
2 changes: 1 addition & 1 deletion website/docs/share-open.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can customize the call to `Share.open` passing the following parameters:

| Name | Type | Description | Optional | Android | iOS | Windows |
| :-------------------- | :-----------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- | :------ | :-- | :------ |
| message | string | Message sent to the share activity | 🚫 | βœ… | βœ… | ❓ |
| message | string | Message sent to the share activity | βœ… | βœ… | βœ… | ❓ |
| title | string | Title sent to the share activity | 🚫 | βœ… | βœ… | ❓ |
| url | string | URL you want to share (only support base64 string in iOS & Android). | βœ… | βœ… | βœ… | ❓ |
| urls | Array[string] | Array of base64 string you want to share. | βœ… | βœ… | βœ… | ❓ |
Expand Down

0 comments on commit 5c16639

Please sign in to comment.