非常教程

React native参考手册

指南 | Guides

Components and APIs

React Native提供了许多内置组件。您可以在左边的侧栏上找到完整的组件和API列表。如果您不确定从哪里开始,请查看以下类别:

  • Basic Components
  • User Interface
  • Lists Views
  • iOS-specific
  • Android-specific
  • Others

您不仅限于与React Native捆绑在一起的组件和API。React Native是数千名开发人员的社区。如果您正在寻找一个特定库的东西,请在npm注册表中搜索提到react-native的包,或查看Awesome React Native获取策划列表。

Basic Components

大多数应用程序将最终使用这些基本组件之一。如果您是React Native的新手,那么您需要熟悉所有这些知识。

View

构建用户界面的最基本的组件。

Text

用于显示文本的组件。

Image

用于显示图像的组件。

TextInput

用于通过键盘将文本输入到应用程序的组件。

ScrollView

提供可托管多个组件和视图的滚动容器。

StyleSheet

提供一个类似于CSS样式表的抽象层。

User Interface

使用以下组件在任何平台上呈现通用用户界面控件。对于平台特定的组件,请继续阅读。

Button

用于处理触摸的基本按钮组件,可以在任何平台上很好地呈现。

Picker

在iOS和Android上呈现本地选取器组件。

Slider

用于从一系列值中选择单个值的组件。

Switch

呈现布尔输入。

List Views

与更通用的不同ScrollView,以下列表视图组件仅呈现当前显示在屏幕上的元素。这使它们成为显示长列表数据的绝佳选择。

FlatList

用于呈现高性能可滚动列表的组件。

SectionList

就像FlatList,但对于分区列表。

iOS Components and APIs

以下许多组件为常用的UIKit类提供了包装器。

ActionSheetIOS

API来显示iOS操作表或分享表。

AlertIOS

用消息创建iOS警报对话框或为用户输入创建提示。

DatePickerIOS

在iOS上呈现日期/时间选择器(选择器)。

ImagePickerIOS

在iOS上呈现图像选择器。

NavigatorIOS

一个包装UINavigationController,使您能够实现导航堆栈。

ProgressViewIOS

UIProgressView在iOS上呈现。

PushNotificationIOS

处理您的应用的推送通知,包括权限处理和图标徽章号码。

SegmentedControlIOS

UISegmentedControl在iOS上呈现。

TabBarIOS

UITabViewController在iOS上呈现。与TabBarIOS.Item一起使用。

Android Components and APIs

下面的许多组件为常用的Android类提供了包装器。

BackHandler

检测硬件按钮用于后退导航。

DatePickerAndroid

打开标准的Android日期选择器对话框。

DrawerLayoutAndroid

DrawerLayout在Android上呈现。

PermissionsAndroid

提供对Android M中引入的权限模型的访问权限

ProgressBarAndroid

ProgressBar在Android上呈现。

TimePickerAndroid

打开标准的Android时间选择器对话框。

ToastAndroid

创建一个Android Toast警报。

ToolbarAndroid

Toolbar在Android上呈现。

ViewPagerAndroid

允许在子视图之间左右翻转的容器。

Others

这些组件可能在某些应用中派上用场。有关组件和API的详尽列表,请查看左边的边栏。

ActivityIndicator

显示循环加载指示器。

Alert

使用指定的标题和消息启动警报对话框。

Animated

一个用于创建易于构建和维护的流畅,强大动画的库。

CameraRoll

提供访问本地相机胶卷/画廊。

Clipboard

提供用于在iOS和Android上设置和从剪贴板获取内容的界面。

Dimensions

提供获取设备尺寸的界面。

KeyboardAvoidingView

提供一个自动移出虚拟键盘的视图。

Linking

提供一个通用接口来与传入和传出的应用程序链接进行交互。

Modal

提供一种在封闭视图上呈现内容的简单方法。

PixelRatio

提供对设备像素密度的访问权限。

RefreshControl

这个组件在里面ScrollView用来添加pull来刷新功能。

StatusBar

组件来控制应用程序状态栏。

WebView

以本地视图呈现网页内容的组件。

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