Use breakpoints in tw.style()? #137
Unanswered
PercentageCorporation
asked this question in
Q&A
Replies: 1 comment
-
Yeah, I'm pretty sure you won't be able to get it to work. That's because the So, what's happening with your code is that the call to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found that I can use tw.style() in the StyleSheet as below, but breakpoints do not seem to work. I have tried a number of configurations to no avail.
Are the breakpoint conditions available anywhere such as possibly { tw.sm && 'h-12' }?
const styles = StyleSheet.create({
navContainer: tw.style(
'flex-row',
'w-full',
'bg-slate-700',
'h-12',
'sm:h-24',
),
})
This did work:
style={ntt()}
const ntt = () => tw
font-bold text-black text-sm sm:text-3xl
;Beta Was this translation helpful? Give feedback.
All reactions