ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 416 forks source link

ios not show component #188

Open max-end opened 5 years ago

max-end commented 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