diff --git a/screeens/NoticeDetail/components/MessageList/index.jsx b/screeens/NoticeDetail/components/MessageList/index.jsx
index 292173f..898a3f4 100644
--- a/screeens/NoticeDetail/components/MessageList/index.jsx
+++ b/screeens/NoticeDetail/components/MessageList/index.jsx
@@ -9,13 +9,10 @@ import React, {
useEffect,
forwardRef,
useImperativeHandle,
- useCallback,
} from "react";
-import { Day } from "react-native-gifted-chat";
import { useTailwind } from "tailwind-rn";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import baseRequest from "../../../../utils/baseRequest";
-import { formatDate } from "../../../../utils/tools";
import { Badge } from "@rneui/themed";
import { useDispatch } from "react-redux";
import { getNoticeCount } from "../../../../store/reducer";
@@ -23,6 +20,7 @@ import requireAPI from "../../../../utils/requireAPI";
import { Image } from "expo-image";
import { connect } from "react-redux";
import dayjs from "dayjs";
+import ScrollNotice from "../ScrollNotice";
const MessageList = ({ navigation, noticeCount, refInstance }) => {
const dispatch = useDispatch();
const [data, setData] = useState([]);
@@ -176,7 +174,7 @@ const MessageList = ({ navigation, noticeCount, refInstance }) => {
});
return;
}
- // setScollNotice(_data.data[0]);
+ setScollNotice(_data.data[0]);
} catch (error) {
console.error(error);
}
@@ -272,9 +270,9 @@ const MessageList = ({ navigation, noticeCount, refInstance }) => {
}}
>
{/* 广告轮播 */}
- {/* {!!scollNotice.length && (
+ {!!scollNotice.length && (
- )} */}
+ )}
{/* 官方消息 */}