Commit 5159efcf by tungnq

TODO: Đã hoàn thiện giao diện phần thông báo

parent b96e6766
...@@ -17,7 +17,7 @@ const styles = StyleSheet.create({ ...@@ -17,7 +17,7 @@ const styles = StyleSheet.create({
marginHorizontal: 3, marginHorizontal: 3,
borderRadius: 10, borderRadius: 10,
backgroundColor: R.colors.gray400, backgroundColor: R.colors.gray400,
minWidth: 86, width: 90,
alignItems: "center", alignItems: "center",
justifyContent: "center", justifyContent: "center",
}, },
...@@ -43,12 +43,11 @@ const styles = StyleSheet.create({ ...@@ -43,12 +43,11 @@ const styles = StyleSheet.create({
shadowColor: R.colors.black, shadowColor: R.colors.black,
shadowOffset: { shadowOffset: {
width: 0, width: 0,
height: 1, height: 2,
}, },
shadowOpacity: 0.5, shadowOpacity: Platform.OS === 'ios' ? 0.25 : 1,
shadowRadius: 1, shadowRadius: 1,
elevation: 1, elevation: Platform.OS === 'ios' ? 1 : 2,
}, },
notification_content: { notification_content: {
flex: 1, flex: 1,
......
...@@ -4,13 +4,11 @@ import { ...@@ -4,13 +4,11 @@ import {
View, View,
TouchableOpacity, TouchableOpacity,
FlatList, FlatList,
SafeAreaView,
} from "react-native"; } from "react-native";
import Header from "../../components/Header/Header"; import Header from "../../components/Header/Header";
import ItemEmpty from "../../components/List/ItemEmpty"; import ItemEmpty from "../../components/List/ItemEmpty";
import I18n from "../../helper/i18/i18n"; import I18n from "../../helper/i18/i18n";
import styles from "./style"; import styles from "./style";
import R from "../../assets/R";
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import { NEWSDETAILS } from "../../routers/ScreenNames"; import { NEWSDETAILS } from "../../routers/ScreenNames";
const NotificationView = (props) => { const NotificationView = (props) => {
...@@ -74,6 +72,7 @@ const NotificationView = (props) => { ...@@ -74,6 +72,7 @@ const NotificationView = (props) => {
<FlatList <FlatList
data={dataNotifi[activeTab] || []} data={dataNotifi[activeTab] || []}
showsVerticalScrollIndicator={false} showsVerticalScrollIndicator={false}
contentContainerStyle={{ paddingTop: 10 }}
renderItem={renderNotificationItem} renderItem={renderNotificationItem}
keyExtractor={(item, index) => `${activeTab}-${index}`} keyExtractor={(item, index) => `${activeTab}-${index}`}
ListEmptyComponent={() => ( ListEmptyComponent={() => (
......
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