Closed rafaelrinaldi closed 2 years ago
yeah something is probably wrong here. can you try making sx a function of your theme and log it?
@nandorojo I am not sure I understand. Do you want me to share the whole theme definition?
Do this:
<Pressable
sx={(theme) => {
console.log(theme.sizes)
return { height: theme.sizes.$8 }
}}
/>
To make sure that the theme is getting picked up correctly.
any luck?
I am trying to use
sizes
to specify theheight
of aPressable
. It works fine on the browser, but I can't seem to make it work for mobile native other than inlining the value itself.Browser output:
iOS Simulator error:
Am I doing something wrong?