I want the center of the logo to be in the tarbar and the overflow bar at the top. How to do it?....... ....................................... .................................................. .................................................. ........ p>
import React from 'react'; import TabNavigator from 'react-native-tab-navigator'; import { View, Text, StyleSheet, Image } from 'react-native'; class App extends React.Component { constructor(props){ super(props) this.state={ selectedTab:'ι¦ι‘΅', } } render() { return ( <View style={styles.container}> <TabNavigator tabBarStyle={styles.tabBarStyle} tabBarShadowStyle={styles.tabBarShadowStyle}> <TabNavigator.Item selected={this.state.selectedTab === 'ι¦ι‘΅'} title="ι¦ι‘΅" selectedTitleStyle={styles.selectedTitleStyle} renderIcon={() => <Image style={styles.tabBarIcon} source={require('../../res/images/icons/home.png')}/>} renderSelectedIcon={() => <Image style={[styles.tabBarSelectedIcon ]} source={require('../../res/images/icons/home.png')}/>} onPress={() => this.setState({ selectedTab: 'ι¦ι‘΅' })} > <Text>ι¦ι‘΅</Text> </TabNavigator.Item> <TabNavigator.Item selected={this.state.selectedTab === 'δΊ§ε'} title="δΊ§ε" selectedTitleStyle={styles.selectedTitleStyle} renderIcon={() => <Image style={styles.tabBarIcon} source={require('../../res/images/icons/product.png')}/>} renderSelectedIcon={() => <Image style={[styles.tabBarSelectedIcon ]} source={require('../../res/images/icons/product.png')}/>} onPress={() => this.setState({ selectedTab: 'δΊ§ε' })} > <Text>δΊ§ε</Text> </TabNavigator.Item> <TabNavigator.Item renderIcon={() => <Image style={styles.logoIcon} source={require('../../res/images/icons/logo_tab.png')}/>} > </TabNavigator.Item> <TabNavigator.Item selected={this.state.selectedTab === 'ζ΄»ε¨'} title="ζ΄»ε¨" selectedTitleStyle={styles.selectedTitleStyle} renderIcon={() => <Image style={styles.tabBarIcon} source={require('../../res/images/icons/activity.png')}/>} renderSelectedIcon={() => <Image style={[styles.tabBarSelectedIcon ]} source={require('../../res/images/icons/activity.png')}/>} onPress={() => this.setState({ selectedTab: 'ζ΄»ε¨' })} > <Text>ζ΄»ε¨</Text> </TabNavigator.Item> <TabNavigator.Item selected={this.state.selectedTab === 'ζη'} title="ζη" selectedTitleStyle={styles.selectedTitleStyle} renderIcon={() => <Image style={styles.tabBarIcon} source={require('../../res/images/icons/profile.png')}/>} renderSelectedIcon={() => <Image style={[styles.tabBarSelectedIcon ]} source={require('../../res/images/icons/profile.png')}/>} onPress={() => this.setState({ selectedTab: 'ζη' })} > <Text>ζη</Text> </TabNavigator.Item> </TabNavigator> </View> ) } } const styles = StyleSheet.create({ container: { flex: 1 }, tabBarStyle: { backgroundColor: '#fff', overflow: 'visible', }, tabBarShadowStyle: { height: 0, }, selectedTitleStyle: { color: '#b42325', }, logoIcon: { zIndex: 9999, position: 'absolute', top: -50, left: -25, width: 60, height: 60, }, tabBarIcon: { width: 26, height: 26, resizeMode: 'contain', tintColor: '#5f5f5f', }, tabBarSelectedIcon: { width: 26, height: 26, resizeMode: 'contain', tintColor: '#b42325', } }); export default App;
Current like this 
And I want to do it. 
Leeen source share