Skip to main content
This API is iOS-only. It will not work on Android or other platforms.
Display action sheets and share sheets on iOS.

Example

Methods

showActionSheetWithOptions()

Display an iOS action sheet. Parameters: Options Object: Example:

showShareActionSheetWithOptions()

Display the iOS share sheet. The options object should contain one or both of message and url. Parameters: Options Object: Note: If url points to a local file, or is a base64-encoded URI, the file it points to will be loaded and shared directly. In this way, you can share images, videos, PDF files, etc. Example:

dismissActionSheet()

Dismisses the most upper iOS action sheet presented. If no action sheet is present, a warning is displayed. Example:

Complete Example

iPad Considerations

On iPad, action sheets are displayed as popovers. You can anchor them to a specific view using the anchor prop: