打开滚动通知
This commit is contained in:
parent
e7b05ed3c2
commit
4b81f6115a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue