react-native-responsive-query
react-native-responsive-query copied to clipboard
responsive ssr with react native web 0.18
Why?
- Adds responsive SSR support for RNW 0.18. Uses CSS class instead of dataSet prop. https://twitter.com/nishanbende/status/1528410157801058305
- Removes all the internal RNW functions used by the hook.
To Install
yarn add react-native-responsive-query@canary
Demo NextJS app
URL - https://rnw-responsive-ssr.vercel.app/ Source - https://github.com/intergalacticspacehighway/rnw-responsive-ssr
Updated readme
https://github.com/intergalacticspacehighway/react-native-responsive-query/tree/rnw-0.18
Hi @intergalacticspacehighway, This breaks with Shadow properties and RTL support. Here I copied preprocess code from rnw and modified it to our needs.