Open max-end opened 5 years ago
<View> <TopBar/> <TabNavigator style={style.tabNavigator}> <TabNavigator.Item title="Home" selected={this.state.select === "home"} renderIcon={() => <Icon name={"qq"} size={26}/>} renderSelectedIcon={() => <Icon name={"qq"} size={26} color={"blue"}/>} badgeText="1" onPress={() => { this.setState({ select: "home" }) }} > <Text> 12 </Text> </TabNavigator.Item> <TabNavigator.Item selected={this.state.select === "user"} title={"My"} renderIcon={() => <Icon name={"qq"} size={26}/>} renderSelectedIcon={() => <Icon name={"qq"} size={26} color={"blue"}/>} badgeText="1" onPress={() => { this.setState({ select: "user" }) }} > </TabNavigator.Item> </TabNavigator> </View>
page not show Text
page not show Text