You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
/**
|
|
|
|
|
* 主题系统统一导出
|
|
|
|
|
*
|
|
|
|
|
* 提供主题配置、工具函数和类型定义
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// 导出颜色配置
|
|
|
|
|
export { default as Colors } from './Colors';
|
|
|
|
|
|
|
|
|
|
// 导出主题 Hooks
|
|
|
|
|
export {
|
|
|
|
|
useColorScheme,
|
|
|
|
|
useThemeColor,
|
|
|
|
|
useThemeColors,
|
|
|
|
|
useThemeInfo,
|
|
|
|
|
} from '@/hooks/useTheme';
|
|
|
|
|
|
|
|
|
|
// 导出主题组件
|
|
|
|
|
export {
|
|
|
|
|
ThemedText,
|
|
|
|
|
ThemedView,
|
|
|
|
|
Text as ThemeText,
|
|
|
|
|
View as ThemeView,
|
|
|
|
|
} from '@/components/Themed';
|
|
|
|
|
|
|
|
|
|
// 导出主题类型
|
|
|
|
|
export { ThemeEnum } from '@/constants/theme';
|
|
|
|
|
|
|
|
|
|
export type {
|
|
|
|
|
ThemedTextProps,
|
|
|
|
|
ThemedViewProps,
|
|
|
|
|
TextProps as ThemeTextProps,
|
|
|
|
|
ViewProps as ThemeViewProps,
|
|
|
|
|
} from '@/components/Themed';
|
|
|
|
|
|
|
|
|
|
// 导出主题工具函数
|
|
|
|
|
export * from './utils';
|
|
|
|
|
export * from './styles';
|
|
|
|
|
|