import React, {Component} from 'react';
import {View, Image, TouchableOpacity} from 'react-native';
import {createStackNavigator} from '@react-navigation/stack';
import personal_center_page from '../../page/personalCenter/personal_center_page';
import login from '../../page/login/login';
import home_page from '../../page/homePage/home_page';
import StackNavigator from '@react-navigation/stack/src/navigators/createStackNavigator';
import product_add from '../../page/productInfo/product_add';
import product_edit from '../../page/productInfo/product_edit';
import tax_category_codes from '../../page/productInfo/tax_category_codes';
import tax_category_detail from '../../page/productInfo/tax_category_detail';
import login_head from '../../page/login/login_head';
import forget_password from '../../page/login/forget_password';
import invoice_customer_information from '../../page/invoice/invoice_customer_information';
import invoice_product_number from '../../page/invoice/invoice_product_number';
import invoice_product_list from '../../page/invoice/invoice_product_list';
import invoice_product_list_add from '../../page/invoice/invoice_product_list_add';
import invoice_user from '../../page/invoice/invoice_user';
import customer_information from '../../page/customerInformation/customer_information';
import customer_add from '../../page/customerInformation/customer_add';
import customer_edit from '../../page/customerInformation/customer_edit';
import customer_see from '../../page/customerInformation/customer_see';
import product_infos from '../../page/productInfo/product_infos';
import enterprise_list from '../../page/enterpriseInfo/enterpriseList';
import invoice_select_customer from '../../page/invoice/invoice_select_customer';
const HomeStack = createStackNavigator();
export default class home_navigation extends Component {
constructor(props) {
super(props);
this.state = {
language: '',
};
}
render() {
return (
,
nextState: Readonly,
nextContext: any,
): boolean {
//console.log("state: "+ JSON.stringify(nextProps.route));
if (nextProps.route.name === 'home_navigation') {
if (nextProps.route.state !== null && nextProps.route.state.index === 0) {
this.props.navigation.setOptions({
tabBarVisible: true,
});
}
}
return true;
}
}