非常教程

React native参考手册

APIs

ImageStore

方法

static hasImageForTag(uri, callback)

检查ImageStore是否包含指定URI的图像数据。@平台ios

static removeImageForTag(uri)

从ImageStore中删除图像。图像存储在内存中,并且必须在完成后手动移除它们,否则它们将继续使用RAM直到应用程序终止。removeImageForTag()没有先打电话的情况下打电话是安全的hasImageForTag(),它只会失败而已。@平台ios

static addImageFromBase64(base64ImageData, success, failure)

在ImageStore中存储base64编码的图像,并返回一个可用于稍后访问或显示图像的URI。图像仅存储在内存中,并且在通过调用完成后必须手动删除removeImageForTag()

请注意,在JS和本机代码之间传输大量的二进制数据效率非常低,所以您应该尽量避免调用它。@平台ios

static getBase64ForTag(uri, success, failure)

检索ImageStore中图像的base64编码数据。如果指定的URI与商店中的图像不匹配,则将调用失败回调。

请注意,在JS和本机代码之间传输大量的二进制数据效率非常低,所以您应该尽量避免调用它。要在ImageStore中显示图像,只需将URI传递给<Image/>组件; 没有必要检索base64数据。

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