export class MainScreen extends Component{
static navigationOptions =
{
headerLeft:<Icon name=”ios-camera” style={{paddingLeft:10}}/>,
title: ‘Instagram’,
headerRight:<Icon name=”ios-send” style={{paddingRight:10}}/>,
headerStyle:{hight:40},
headerTitleStyle:{
textAlign:’center’,
fontSize:18,
width:Dimensions.get(‘window’).width-110
}
};
render() {
return (
<AppTabNavigator/> — اینجا تا وقتی که از ویو استفاده می کنیم هدر یا ایکون ها دیده می شود اما وقتی این کد رو می زاریم تب ها دیده می شود ولی هدر و هیچ ایکونی دیده نمی شود …حتی روی تب ها
);
}
}
const AppTabNavigator=createBottomTabNavigator(
{
HomeTab:{screen:HomeTab},
AddMediaTab:{screen:AddMediaTab},
SearchTab:{screen:SearchTab}
}, {
initialRouteName: ‘HomeTab’,
swipeEnabled: true,
animationEnabled: true,
headerMode:’none’,
mode:’modal’,
tabBarOptions: {
activeTintColor: ‘#405BDB’,
inactiveTintColor: ‘#9B9B9B’,
showIcon:true,
showLabel:true,
}}
)
export default createAppContainer(AppTabNavigator);