非常教程

React native参考手册

Components: TabBarIOS.Item

TabBarIOS.Item

道具

ViewPropTypes道具...

badge?: string, number

位于图标右上方的小红色气泡。

badgeColor?: color

徽章的背景颜色。自iOS 10起可用。

icon?: Image.propTypes.source

该选项卡的自定义图标。定义系统图标时忽略它。

onPress?: function

在选择此选项卡时回调,您应该更改组件的状态以设置selected = {true}。

renderAsOriginal?: bool

如果设置为true,则会将图像渲染为原始图像,但默认情况下显示为模板

selected?: bool

它指定了孩子是否可见。如果您看到空白内容,则可能忘记添加选定的内容。

selectedIcon?: Image.propTypes.source

选择选项卡时的自定义图标。定义系统图标时忽略它。如果留空,图标将以蓝色着色。

style?: ViewPropTypes.style

React样式对象。

systemIcon?: enum('bookmarks', 'contacts', 'downloads', 'favorites', 'featured', 'history', 'more', 'most-recent', 'most-viewed', 'recents', 'search', 'top-rated')

项目带有一些预定义的系统图标。请注意,如果您正在使用它们,标题和selectedIcon将被系统覆盖。

title?: string

出现在图标下方的文字。定义系统图标时忽略它。

iosisTVSelectable?: bool

(仅适用于Apple TV)*设置为true时,此视图将使用Apple TV遥控器进行对焦和导航。

Components: TabBarIOS.Item相关

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