Files
create-better-t-stack/apps/cli/templates/frontend/native/unistyles/unistyles.ts
Aman Varshney 6c269a4c5b add unistyles
2025-05-07 18:12:04 +05:30

28 lines
584 B
TypeScript

import { StyleSheet } from 'react-native-unistyles';
import { breakpoints } from './breakpoints';
import { lightTheme, darkTheme } from './theme';
type AppBreakpoints = typeof breakpoints;
type AppThemes = {
light: typeof lightTheme;
dark: typeof darkTheme;
};
declare module 'react-native-unistyles' {
export interface UnistylesBreakpoints extends AppBreakpoints {}
export interface UnistylesThemes extends AppThemes {}
}
StyleSheet.configure({
breakpoints,
themes: {
light: lightTheme,
dark: darkTheme,
},
settings: {
adaptiveThemes: true,
},
});