diff --git a/src/screens/reader/components/ChapterDrawer.js b/src/screens/reader/components/ChapterDrawer.js index a9feb562..4edab15b 100644 --- a/src/screens/reader/components/ChapterDrawer.js +++ b/src/screens/reader/components/ChapterDrawer.js @@ -1,16 +1,16 @@ import React, { useEffect, useMemo, useRef, useState } from 'react'; -import { StyleSheet, View } from 'react-native'; -import { Text, TouchableRipple } from 'react-native-paper'; +import { StyleSheet, View, Pressable } from 'react-native'; +import { Text } from 'react-native-paper'; import color from 'color'; import { useTheme } from '@hooks/useTheme'; import { FlashList } from '@shopify/flash-list'; import { Button, LoadingScreenV2 } from '@components/index'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; -import { LinearGradient } from 'expo-linear-gradient'; import { getString } from '@strings/translations'; import { useNovel, useSettings, usePreferences } from '@hooks/reduxHooks'; import { useDispatch } from 'react-redux'; import { setNovel, getNovelAction } from '@redux/novel/novel.actions'; +import { dividerColor } from '@theme/colors'; const ChapterDrawer = ({ state: st, navigation }) => { const theme = useTheme(); @@ -87,59 +87,48 @@ const ChapterDrawer = ({ state: st, navigation }) => { ...item, }); }; - const renderItem = ({ item }) => { - let current = {}; - if (item.chapterId === currentChapterId) { - current = { - backgroundColor: color(theme.secondaryContainer).alpha(0.5).string(), - }; - } - return ( - ( + + changeChapter(item)} - borderless={true} + style={styles.chapterCtn} > - + {item.chapterName} - - ); - }; - const ListHeader = () => { - return ( - <> - - - - ); - }; + {item.releaseDate && ( + {item.releaseDate} + )} + + + ); + const ListFooter = () => { return ( - <> - +