Commit 2b831bd1 by Giang Tran

update tabbar transaction

parent adacfa46
import React, {Component} from 'react';
import {View, Text} from 'react-native';
const DueDate = () => {
return (
<View>
<Text>DueDate view</Text>
</View>
);
};
export default DueDate;
import React, {Component} from 'react';
import {View, Text} from 'react-native';
const Escrow = () => {
return (
<View>
<Text>Ecrow view</Text>
</View>
);
};
export default Escrow;
import React, {Component} from 'react';
import {View, Text} from 'react-native';
const PriceList = () => {
return (
<View>
<Text>PriceList view</Text>
</View>
);
};
export default PriceList;
import React, {Component} from 'react';
import {View, Text} from 'react-native';
const TimeTransaction = () => {
return (
<View>
<Text>TimeTransaction view</Text>
</View>
);
};
export default TimeTransaction;
import React, {Component} from 'react';
import {View, Text, StatusBar, SafeAreaView} from 'react-native';
import {getFontXD, HEIGHT, WIDTHXD} from '../../Config/Functions';
import DueDate from './DueDate/DueDate';
import Escrow from './Escrow/Escrow';
import PriceList from './PriceList/PriceList';
import TimeTransaction from './TimeTransaction/TimeTransaction';
import I18n from '../../helper/i18/i18n';
import {createMaterialTopTabNavigator} from '@react-navigation/material-top-tabs';
const Tab = createMaterialTopTabNavigator();
import HeaderDrawer from '../../components/Header/HeaderDrawer';
const NewFeed = (props) => {
return (
<View style={{flex: 1}}>
<HeaderDrawer title={'Tradding'} isWhite={true} />
<View style={{flex: 1, backgroundColor: 'white'}}>
<Tab.Navigator
initialRouteName="PriceList"
swipeEnabled={false}
tabBarOptions={{
scrollEnabled: true,
inactiveTintColor: '#929292',
activeTintColor: '#1473E6',
labelStyle: {fontSize: getFontXD(36)},
style: {backgroundColor: 'white'},
}}>
<Tab.Screen
name="PriceList"
component={PriceList}
options={{tabBarLabel: I18n.t('Price_List')}}
/>
<Tab.Screen
name="TimeTransaction"
component={TimeTransaction}
options={{tabBarLabel: I18n.t('Time_Transaction')}}
/>
<Tab.Screen
name="Escrow"
component={Escrow}
options={{tabBarLabel: I18n.t('Escrow')}}
/>
<Tab.Screen
name="DueDate"
component={DueDate}
options={{tabBarLabel: I18n.t('Due_Date')}}
/>
</Tab.Navigator>
</View>
</View>
);
};
export default NewFeed;
...@@ -191,5 +191,9 @@ export default { ...@@ -191,5 +191,9 @@ export default {
Tradding: 'Tradding', Tradding: 'Tradding',
Finance: 'Finance', Finance: 'Finance',
Support: 'Hỗ trợ', Support: 'Hỗ trợ',
Support_Customer: 'Support_Customer', Support_Customer: 'Support Customer',
Price_List: 'Price list',
Time_Transaction: 'Time transaction',
Escrow: 'Escrow',
Due_Date: 'Due date',
}; };
...@@ -197,4 +197,8 @@ export default { ...@@ -197,4 +197,8 @@ export default {
Finance: 'Tài chính', Finance: 'Tài chính',
Support: 'Hỗ trợ', Support: 'Hỗ trợ',
Support_Customer: 'Hỗ trợ khách hàng', Support_Customer: 'Hỗ trợ khách hàng',
Price_List: 'Bảng phí',
Time_Transaction: 'Thời gian GD',
Escrow: 'Ký quỹ',
Due_Date: 'Lịch đáo hạn',
}; };
...@@ -15,6 +15,7 @@ import NewFeed from '../Screens/NewFeed/NewFeed'; ...@@ -15,6 +15,7 @@ import NewFeed from '../Screens/NewFeed/NewFeed';
import Notification from '../Screens/Notification/Notification'; import Notification from '../Screens/Notification/Notification';
import Test from '../Screens/NewFeed/Test'; import Test from '../Screens/NewFeed/Test';
import {useNavigation} from '@react-navigation/native'; import {useNavigation} from '@react-navigation/native';
import Transaction from '../Screens/Transaction/Transaction';
import {AccountVerification, PACKETCQG} from '../routers/ScreenNames'; import {AccountVerification, PACKETCQG} from '../routers/ScreenNames';
import I18n from '../helper/i18/i18n'; import I18n from '../helper/i18/i18n';
import {changeLanguage} from '../actions/language'; import {changeLanguage} from '../actions/language';
...@@ -81,7 +82,7 @@ const TabNavigator = (props) => { ...@@ -81,7 +82,7 @@ const TabNavigator = (props) => {
<Tab.Screen <Tab.Screen
name="Screen2" name="Screen2"
component={Account} component={Transaction}
options={{ options={{
tabBarLabel: I18n.t('Account'), tabBarLabel: I18n.t('Account'),
tabBarIcon: ({color, size}) => ( tabBarIcon: ({color, size}) => (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment