Commit 3038b5a2 by tungnq

TODO: Bổ sung 2 giao diện tab phần lịch dạy với máy quét

parent d87b0cab
import QrCode from "../../../screens/qr_code";
export default {
EnterPhoneNumberToLogin: 'Enter phone number to login',
Enter: 'Enter',
......@@ -75,4 +77,6 @@ export default {
Select_source_image: 'Select the source of the image',
Photo_library: 'Photo library',
Take_photo: 'Take a photo',
Class_schedule: 'Class schedule',
QrCode: 'Qr code',
};
......@@ -76,4 +76,6 @@ export default {
Select_source_image: 'Chọn nguồn lấy ảnh',
Photo_library: 'Thư viện ảnh',
Take_photo: 'Chụp ảnh',
Class_schedule: 'Lịch dạy',
QrCode: 'Máy quét',
};
export const TABNAVIGATOR = 'TABNAVIGATOR';
export const HOMESCREEN = 'HOMESCREEN';
export const QRCODE = 'QRCODE';
export const HOMENOTIFICATION = 'HOMENOTIFICATION';
export const LISTNOTIFICATION = 'LISTNOTIFICATION';
......
......@@ -35,6 +35,7 @@ import DetailEmail from '../screens/email/detail';
import ListRollCallView from '../screens/roll_call/';
import ListStudentRollCall from '../screens/roll_call/list_student_roll_call';
import DetailRollCall from '../screens/roll_call/detail';
import QrCode from '../screens/qr_code';
const Stack = createStackNavigator();
function MyStack(props) {
......@@ -78,6 +79,7 @@ function MyStack(props) {
<Stack.Screen name={ScreenName.LISTROLLCALL} component={ListRollCallView}/>
<Stack.Screen name={ScreenName.LISTSTUDENTROLLCALL} component={ListStudentRollCall}/>
<Stack.Screen name={ScreenName.DETAILROLLCALL} component={DetailRollCall}/>
<Stack.Screen name={ScreenName. QRCODE} component={QrCode}/>
</Stack.Navigator>
);
}
......
......@@ -6,8 +6,9 @@ import {connect} from 'react-redux';
import R from '../assets/R';
import Notification from '../screens/notification';
import Profile from '../screens/profile';
import ClassSchedule from '../screens/class_schedule';
import Home from '../screens/home';
import QrCode from '../screens/qr_code';
const Tab = createBottomTabNavigator();
......@@ -57,6 +58,32 @@ const TabNavigator = props => {
),
}}
/>
<Tab.Screen
name="HomeScreen145"
component={ClassSchedule}
options={{
tabBarLabel: i18n.t('Class_schedule'),
tabBarIcon: ({color, size}) => (
<Image
source={R.images.icLichDay}
style={{width: size, height: size, tintColor: color}}
/>
),
}}
/>
<Tab.Screen
name="HomeScreen14"
component={QrCode}
options={{
tabBarLabel: i18n.t('QrCode'),
tabBarIcon: ({color, size}) => (
<Image
source={R.images.icQrCodeTab}
style={{width: size, height: size, tintColor: color}}
/>
),
}}
/>
<Tab.Screen
name="NotificationScreen"
......@@ -72,6 +99,7 @@ const TabNavigator = props => {
),
}}
/>
<Tab.Screen
name="ProfileScreen"
component={Profile}
......@@ -86,8 +114,6 @@ const TabNavigator = props => {
),
}}
/>
</Tab.Navigator>
);
};
......
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