非常教程

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对象应包含一个或两个的messageurl,并且可以附加地具有subjectexcludedActivityTypes

  • url (string) - 要共享的URL
  • message (string) - 要共享的消息
  • subject (string) - 消息的主题
  • excludedActivityTypes (string) - 从ActionSheet中排除的活动

注意:如果url指向本地文件,或者是base64编码的uri,则它指向的文件将被加载并直接共享。通过这种方式,您可以分享图片,视频,PDF文件等。

React native

React Native 是一个 JavaScript 的框架,用来撰写实时的、可原生呈现 iOS 和 Android 的应用。

主页 https://facebook.github.io/react-native/
源码 https://github.com/facebook/react-native
发布版本 0.49

React native目录

1.开始 | Getting Started
2.指南 | Guides
3.APIs
4.组件:ActivityIndicator | Components: ActivityIndicator
5.组件:按钮 | Components: Button
6.组件:CheckBox | Components: CheckBox
7.组件:DatePickerIOS | Components: DatePickerIOS
8.组件:DrawerLayoutAndroid | Components: DrawerLayoutAndroid
9.组件:FlatList | Components: FlatList
10.组件:图像 | Components: Image
11.组件:KeyboardAvoidingView | Components: KeyboardAvoidingView
12.Components: ListView
13.Components: MaskedViewIOS
14.Components: Modal
15.Components: NavigatorIOS
16.Components: Picker
17.Components: PickerIOS
18.Components: ProgressBarAndroid
19.Components: ProgressViewIOS
20.Components: RefreshControl
21.Components: ScrollView
22.Components: SectionList
23.Components: SegmentedControlIOS
24.Components: Slider
25.Components: SnapshotViewIOS
26.Components: StatusBar
27.Components: Switch
28.Components: TabBarIOS
29.Components: TabBarIOS.Item
30.Components: Text
31.Components: TextInput
32.Components: ToolbarAndroid
33.Components: TouchableHighlight
34.Components: TouchableNativeFeedback
35.Components: TouchableOpacity
36.Components: TouchableWithoutFeedback
37.Components: View
38.Components: ViewPagerAndroid
39.Components: VirtualizedList
40.Components: WebView
41.创建 | Contributing
42.指南(Android) | Guides (Android)
43.指南(IOS) | Guides (iOS)
44.其他 | Miscellaneous