import React, {Component} from 'react'; import {createStackNavigator} from '@react-navigation/stack'; import personal_center_page from '../../page/personalCenter/personal_center_page'; import login_head from '../../page/login/login_head'; import forget_password from '../../page/login/forget_password'; import personal_information from '../../page/personalInformation/personal_information'; import enterprise_list from '../../page/enterpriseInfo/enterpriseList'; import customer_information from '../../page/customerInformation/customer_information'; import change_nick_name from '../../page/personalInformation/change_nick_name'; import change_sex from '../../page/personalInformation/change_sex'; import change_company from '../../page/personalInformation/change_company'; import change_address from '../../page/personalInformation/change_address'; import change_phone from '../../page/personalInformation/change_phone'; import change_profiles from '../../page/personalInformation/change_profiles'; const Stack = createStackNavigator(); export default class personal_navigation extends Component { constructor(props) { super(props); } render() { return ( ); } //判断导航栏是否显示 shouldComponentUpdate( nextProps: Readonly

, nextState: Readonly, nextContext: any, ): boolean { if (nextProps.route.state.index === 0) { this.props.navigation.setOptions({ tabBarVisible: true, }); } return true; } }