Skip to content

Commit

Permalink
fix: theme creation in ThemeProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Apr 13, 2023
1 parent 7679900 commit 11ecc51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-turkeys-invite.md
@@ -0,0 +1,5 @@
---
"@svbstrate/react-native": patch
---

Fix theme creation in ThemeProvider
2 changes: 1 addition & 1 deletion packages/react-native/lib/__tests__/test
Expand Up @@ -35,7 +35,7 @@ function App() {
}
}
}}>
<Box as={Box} color='primary' shadow='large'>Hello</Box>
<Box as={Box} color='primary' shadow='large' style={{}}>Hello</Box>
</ThemeProvider>
</>
)
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/lib/index.tsx
Expand Up @@ -98,7 +98,7 @@ export function ThemeProvider(
...props.theme,
properties: {
...defaultProperties,
...(props.theme.properties || {}),
...(props.theme?.properties || {}),
},
}),
},
Expand Down

0 comments on commit 11ecc51

Please sign in to comment.