React native参考手册
APIs
ActionSheetIOS
方法
static showActionSheetWithOptions(options, callback)
显示iOS操作表。该options
对象必须包含以下一项或多项:
-
options
(array of strings) - 按钮标题列表(必需)
-
cancelButtonIndex
(int) - 取消按钮的索引options
-
destructiveButtonIndex
(int) - 破坏性按钮的索引options
-
title
(string) - 显示在操作表上方的标题
-
message
(string) - 在标题下面显示的消息
static showShareActionSheetWithOptions(options, failureCallback, successCallback)
显示iOS分享表。的options
对象应包含一个或两个的message
和url
,并且可以附加地具有subject
或excludedActivityTypes
:
-
url
(string) - 要共享的URL
-
message
(string) - 要共享的消息
-
subject
(string) - 消息的主题
-
excludedActivityTypes
(string) - 从ActionSheet中排除的活动
注意:如果url
指向本地文件,或者是base64编码的uri,则它指向的文件将被加载并直接共享。通过这种方式,您可以分享图片,视频,PDF文件等。
APIs相关

React Native 是一个 JavaScript 的框架,用来撰写实时的、可原生呈现 iOS 和 Android 的应用。
主页 | https://facebook.github.io/react-native/ |
源码 | https://github.com/facebook/react-native |
发布版本 | 0.49 |