feat: 首页更新
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
/**
|
||||
* 主题演示组件
|
||||
*
|
||||
*
|
||||
* 展示所有主题颜色和组件在不同主题下的效果
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { StyleSheet, View, Text, TouchableOpacity, ScrollView } from 'react-native';
|
||||
import { ThemedText, ThemedView, useThemeColor } from './Themed';
|
||||
import { useTheme, useSettingsActions } from '@/stores';
|
||||
import { useTheme, useSettingsStore } from '@/stores';
|
||||
import { useHaptics } from '@/hooks';
|
||||
|
||||
export function ThemeDemo() {
|
||||
const theme = useTheme();
|
||||
const { setTheme } = useSettingsActions();
|
||||
const { setTheme } = useSettingsStore();
|
||||
const haptics = useHaptics();
|
||||
|
||||
// 获取主题颜色
|
||||
|
||||
Reference in New Issue
Block a user