useTheme
Returns Empty Object or undefined
#1078
Closed
okerx
started this conversation in
Feature Request
Replies: 1 comment 2 replies
-
Hey @ammar-oker, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Since my app is wrapped with
GluestackUIProvider
, I expect to get thetheme
object using the hookuseTheme
. instead, it returns empty object{}
. accessing the theme object is necessary if I wanna style non-gluestack components (e.g. FontAwesome icons or React Navigation components)CodeSandbox/Snack link
https://snack.expo.dev/@ammaroker/frisky-mixed-nuts
Steps to reproduce
GluestackUIProvider
theme
object within a component wrapped insideGluestackUIProvider
theme
object will be an empty object.gluestack-ui Version
0.2.41
Platform
Other Platform
N/A
Additional Information
My main goal here is to access the theme styles without the text-based variable. This will make it possible to integrate this library with others.
cheers,
Beta Was this translation helpful? Give feedback.
All reactions