From 4b81f6115a425b92dc1039c03082621e2fab7c88 Mon Sep 17 00:00:00 2001 From: al Date: Thu, 16 Jan 2025 16:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E6=BB=9A=E5=8A=A8=E9=80=9A?= =?UTF-8?q?=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- screeens/NoticeDetail/components/MessageList/index.jsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 && ( - )} */} + )} {/* 官方消息 */}