Commit 6bafb50c by G

rename AppTheme -> Theme

parent 0fd284c4
import theme from "@/themes/Theme";
import Text from "@components/bases/Text"; import Text from "@components/bases/Text";
import { ThemeProvider } from "@shopify/restyle"; import { ThemeProvider } from "@shopify/restyle";
import theme from "@themes/AppTheme";
import { StatusBar } from "expo-status-bar"; import { StatusBar } from "expo-status-bar";
import { StyleSheet, View } from "react-native"; import { StyleSheet, View } from "react-native";
......
import type { Theme } from "@/themes/Theme";
import { createBox } from "@shopify/restyle"; import { createBox } from "@shopify/restyle";
import type { AppTheme } from "@themes/AppTheme";
const Box = createBox<AppTheme>(); const Box = createBox<Theme>();
export default Box; export default Box;
import type { Theme } from "@/themes/Theme";
import { createText } from "@shopify/restyle"; import { createText } from "@shopify/restyle";
import type { AppTheme } from "@themes/AppTheme";
const Text = createText<AppTheme>(); const Text = createText<Theme>();
export default Text; export default Text;
...@@ -39,5 +39,5 @@ const theme = createTheme({ ...@@ -39,5 +39,5 @@ const theme = createTheme({
}, },
}); });
export type AppTheme = typeof theme; export type Theme = typeof theme;
export default theme; export default theme;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment