mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): upgrade to expo 54 (#574)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { StyleSheet } from "react-native-unistyles";
|
||||
|
||||
import { breakpoints } from "./breakpoints";
|
||||
import { darkTheme, lightTheme } 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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user