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