jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native
2k stars 82 forks source link

Media queries don't re-render screen with Expo Router #318

Closed WKampel closed 2 weeks ago

WKampel commented 3 weeks ago

I'm using Expo Router. When I resize the screen on web, the media queries aren't causing re-renders like they should, so it's not responsive.

I have useDeviceContext(tw) in the root _layout.

jaredh159 commented 3 weeks ago

did you read the section on memo busting in the readme?

jaredh159 commented 2 weeks ago

closing, pretty sure this would be a dupe of https://github.com/jaredh159/tailwind-react-native-classnames/issues/112 or solvable with memo-busting.