非常教程

React native参考手册

创建 | Contributing

Understanding the CLI

需要本机代码的项目

此页面仅适用于react-native init使用Create React Native App 制作的或使用此类应用程序弹出的项目。有关弹出的更多信息,请参阅创建React Native App存储库的指南。

虽然您可能已将react-native-clivia npm作为单独的模块安装,但它是用于访问嵌入在每个项目的React Native中的CLI的外壳程序。您的命令及其效果取决于react-native项目上下文中模块的版本。本指南将简要介绍模块中的CLI。

React Native有一个local-cli名为文件的文件夹cliEntry.js。在这里,命令是从commands.jsCLI命令中读取和添加的。EGreact-native link命令,存在于react-native/local-cli/link文件夹中,并且需要在commands.js,这将其注册为一个记录命令被暴露于CLI。

在每个命令条目的末尾是一个导出。导出是一个具有执行功能的对象,对命令的描述和命令名称。该link命令的对象结构如下所示:

module.exports = {
  func: link,
  description: 'links all native dependencies',
  name: 'link [packageName]',
};

参数

命令名称用于标识命令预期的参数。当命令参数被大于,小于符号包围时< >,这表示该参数是预期的。当括号括住参数时[ ],表示参数是可选的。

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