mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
28 lines
584 B
TypeScript
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,
|
|
},
|
|
});
|