打开滚动通知

This commit is contained in:
al 2025-01-16 16:08:39 +08:00
parent e7b05ed3c2
commit 4b81f6115a
1 changed files with 4 additions and 6 deletions

View File

@ -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 && (
<ScrollNotice content={scollNotice} length={scollNotice.length} />
)} */}
)}
{/* 官方消息 */}
<View