xref: /MusicFree/src/pages/setCustomTheme/index.tsx (revision 6613e77203923e5b1742a49281bfa5de03fc1440)
1import React from 'react';
2import {StyleSheet} from 'react-native';
3import rpx from '@/utils/rpx';
4import AppBar from '@/components/base/appBar';
5import VerticalSafeAreaView from '@/components/base/verticalSafeAreaView';
6import globalStyle from '@/constants/globalStyle';
7import Button from '@/components/base/textButton.tsx';
8import Body from './body';
9import {useNavigation} from '@react-navigation/native';
10
11export default function SetCustomTheme() {
12    const navigation = useNavigation();
13    return (
14        <VerticalSafeAreaView style={globalStyle.fwflex1}>
15            <AppBar
16                withStatusBar
17                actionComponent={
18                    <Button
19                        style={styles.submit}
20                        onPress={() => {
21                            navigation.goBack();
22                        }}
23                        fontColor="appBarText">
24                        完成
25                    </Button>
26                }>
27                自定义背景
28            </AppBar>
29            <Body />
30        </VerticalSafeAreaView>
31    );
32}
33
34const styles = StyleSheet.create({
35    container: {
36        width: rpx(750),
37    },
38    submit: {
39        justifyContent: 'center',
40    },
41});
42