属性

badge string, number #

在图标右上角显示一个红色的气泡。

icon Image.propTypes.source #

给当前标签指定一个自定义的图标。如果定义了systemIcon属性, 这个属性会被忽略。

onPress function #

当此标签被选中时调用。你应该修改组件的状态来使得selected={true}

selected bool #

这个属性决定了子视图是否可见。如果你看到一个空白的页面,很可能是没有选中任何一个标签。

selectedIcon Image.propTypes.source #

当标签被选中的时候显示的自定义图标。如果定义了systemIcon属性,这个属性会被忽略。如果定义了icon而没定义这个属性,在选中的时候图标会染上蓝色。

style View#style #

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

一些预定义的系统图标。注意如果你使用了此属性,标题和自定义图标都会被覆盖为系统定义的值。

title string #

在图标下面显示的标题文字。如果定义了systemIcon属性,这个属性会被忽略。


书籍推荐