(20)-分页栏中的元素

TabBarIOS.Item

属性

名称 类型 意义 默认值
badge string,number 小红泡 无
icon Image.propTypes.source 自定义图标 无
onPress function 当元素被选择时的回调函数 无
selected bool 表示子视图中控件是否可用 false
selectedIcon Image.propTypes.source 当元素被选择时,显示的图标 无
style style 样式 无
systemIcon enum(‘bookmarks’, ‘contacts’, ‘downloads’, ‘favorites’, ‘featured’, ‘history’, ‘more’, ‘most-recent’, ‘most-viewed’, ‘recents’, ‘search’, ‘top-rated’) 预设值的系统图标 无
title string 图标上的文本值 无
文章导航