Commit 67f2c093 by tungnq

TODO: Đã hoàn thiện luồng thông báo

parent 45dfc3f6
......@@ -16,7 +16,7 @@ function MyStack(props) {
headerStatusBarHeight: 0,
}}
headerMode={'none'}
initialRouteName={ScreenName.ADDNOTIFICATION}>
initialRouteName={ScreenName.TABNAVIGATOR}>
<Stack.Screen name={ScreenName.HOMESCREEN} component={Home} />
<Stack.Screen name={ScreenName.TABNAVIGATOR} component={TabNavigator} />
<Stack.Screen name={ScreenName.DETAILNOTIFICATION} component={NotificationDetail} />
......
......@@ -29,9 +29,6 @@ const NotificationDetail = (props) => {
return (
<NotificationDetailView
options={options}
selectedValue={selectedValue}
onValueChange={onValueChange}
dataList={dataList}
/>
);
......
......@@ -5,7 +5,6 @@ import Header from '../../../components/Header/Header';
import TextField from '../../../components/Input/TextField';
import R from '../../../assets/R';
import TextMulti from '../../../components/Input/TextMulti';
import RadioGroup from '../../../components/RadioButton/RadioGroup';
import Button from '../../../components/Button';
const NotificationDetailView = props => {
const {
......
......@@ -11,6 +11,8 @@ import {
import Header from '../../components/Header/Header';
import styles from './style';
import R from '../../assets/R';
import * as SCREENNAME from "../../routers/ScreenNames";
import { useNavigation } from "@react-navigation/native";
const NotificationView = props => {
const {
dataTitleListTabView,
......@@ -21,6 +23,7 @@ const NotificationView = props => {
searchText,
onSearchChange,
} = props;
const navigate = useNavigation();
//Xử lý render item cho tab view
const getRenderItemFunction = () => {
switch (activeTab) {
......@@ -111,7 +114,7 @@ const NotificationView = props => {
const renderNotificationItemTution = ({item}) => {
const statusColor = getStatusColor(item.status);
return (
<TouchableOpacity style={[styles.cardItem, styles.cardItemTution]}>
<TouchableOpacity style={[styles.cardItem, styles.cardItemTution]} onPress={() => navigate.navigate(SCREENNAME.DETAILNOTIFICATION)}>
<View style={styles.boxLeft}>
<Text style={styles.text} numberOfLines={1} ellipsizeMode="tail">
<Text style={styles.text}>Tiêu đề: </Text>
......@@ -195,7 +198,7 @@ const NotificationView = props => {
<View style={styles.containerFooter}>
<TouchableOpacity
style={styles.btnFooter}
onPress={() => navigate.navigate(SCREENNAME.PROFILE)}>
onPress={() => navigate.navigate(SCREENNAME.ADDNOTIFICATION)}>
<Text style={styles.textBtnFooter}>To thông báo mi</Text>
</TouchableOpacity>
</View>
......
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