非常教程

React native参考手册

APIs

Systrace

方法

静态installReactHook(useFiber)

静态setEnabled(启用)

static isEnabled()

静态beginEvent(profileName?,参数?)

beginEvent / endEvent用于在同一调用堆栈框架中启动并结束配置文件

static endEvent()

static beginAsyncEvent(profileName?)

beginAsyncEvent / endAsyncEvent用于启动然后结束一个配置文件,其中结束可以发生在另一个线程上或出现在当前栈帧中,例如等待返回的cookie变量应该用作endAsyncEvent调用的输入以结束配置文件

static endAsyncEvent(profileName?,cookie?)

static counterEvent(profileName?, value?)

counterEvent将值注册到systrace时间轴上的profileName

static attachToRelayProfiler(relayProfiler)

中继配置文件使用await调用,所以可能发生在当前堆栈帧之外,因此使用了配置文件的异步变体

static swizzleJSON()

由于perf的开销,这不会被默认调用,但如果您想要查找在JSON中花费太多时间的跟踪,这很有用。

static measureMethods(object, objectName, methodNames)

测量一个类的多种方法。例如,您可以执行:Systrace.measureMethods(JSON,'JSON','parse','stringify');

@param对象@param objectName @param methodNames从方法名称映射到方法显示名称。

static measure(objName, fnName, func)

返回输入函数的配置文件版本。例如,您可以:JSON.parse = Systrace.measure('JSON','parse',JSON.parse);

@param objName @param fnName @param {function} func @return {function}替换函数

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