jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native
2.08k stars 84 forks source link

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

Closed WKampel closed 2 months ago

WKampel commented 3 months 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 months ago

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

jaredh159 commented 2 months 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.