vitalets / react-native-extended-stylesheet

Extended StyleSheets for React Native
MIT License
2.93k stars 132 forks source link

Responding to Media Queries on window resize in React Native Web #152

Closed haveamission closed 3 years ago

haveamission commented 3 years ago

Is there a way to respond to window resize events and automatically re-calculate all of the Media Queries for the new window size?

vitalets commented 3 years ago

@haveamission This is related to dynamic theme change, see #caveats. You can manually subscribe to resize event and rebuild styles. But the problem is how to re-render all components of the app. Please see https://github.com/vitalets/react-native-extended-stylesheet/issues/47#issuecomment-314760557 for details.

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.