import React from 'react'; import { BackHandler, ImageBackground, StyleSheet, Text, View, } from 'react-native'; import rpx from '@/utils/rpx'; import {DrawerContentScrollView} from '@react-navigation/drawer'; import {Button, Card, IconButton} from 'react-native-paper'; import MusicQueue from '@/common/musicQueue'; import ListItem from '@/components/listItem'; import {useNavigation} from '@react-navigation/native'; import {ROUTE_PATH} from '@/entry/router'; import {fontSizeConst, fontWeightConst} from '@/constants/uiConst'; import ThemeText from '@/components/themeText'; import {useConfig} from '@/common/localConfigManager'; interface IDrawerProps {} export default function HomeDrawer(props: IDrawerProps) { const navigation = useNavigation(); const background = useConfig('setting.background'); function navigateToSetting(settingType: string) { navigation.navigate(ROUTE_PATH.SETTING, { type: settingType, }); } return ( Music Free 设置 }> { navigateToSetting('basic'); }}> { navigateToSetting('plugin'); }}> { navigateToSetting('theme'); }}> ); } const style = StyleSheet.create({ wrapper: { flex: 1, backgroundColor: '#999999', }, scrollWrapper: { paddingHorizontal: rpx(24), paddingTop: rpx(12), }, header: { height: rpx(100), width: '100%', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', }, title: { fontSize: fontSizeConst.bigger, includeFontPadding: false, fontWeight: fontWeightConst.bold, }, cardTitle: { fontSize: fontSizeConst.small, }, card: { backgroundColor: '#eeeeee22', }, bottom: { height: rpx(100), flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-end', }, });