Skip to main content
The ShareButton component provides a native Facebook-styled button that automatically triggers the share dialog when pressed.

Component

Props

ShareContent
required
Content to be shared when the button is pressed. Can be ShareLinkContent, SharePhotoContent, or ShareVideoContent.
ViewStyle
Custom style for the button. The default style has a height of 30 and width of 80.

Examples

Basic Usage

Custom Styled Button

Share Photo

Default Styling

The default button style is:
You can override this with your own style using the style prop.