Skip to content

Commit

Permalink
feat: add serializable props to ShareButton component
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodrus committed Apr 22, 2020
1 parent 3b91b74 commit e83c067
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ import {

// Required: content.message OR content.url
// Optional: content: title; options: dialogTitle, excludedActivityTypes, tintColor
export interface ShareButtonProps {
export interface SerializeShareButtonProps {
content: ShareContent;
options?: ShareOptions;
style?: ImageStyle;
}

export interface ShareButtonProps extends Omit<
SerializeShareButtonProps,
'style'
> {
renderShareIcon?: () => React.ReactElement;
style?: StyleProp<ImageStyle>;
}

0 comments on commit e83c067

Please sign in to comment.