fix: withExpoSnack fixes

This commit is contained in:
Mark Lawlor
2022-06-30 17:00:38 +10:00
parent 69cfffe5dc
commit 180de7df1b

View File

@@ -25,7 +25,7 @@ function ExpoSnackWrapper({ children }: PropsWithChildren<unknown>) {
export function withExpoSnack(
Component: ComponentType,
theme: Config["theme"]
theme: Config["theme"] = {}
) {
function dangerouslyCompileStyles(css: string, store: StyleSheetRuntime) {
const themeString = JSON.stringify(theme);