react-native-responsive-dimensions
react-native-responsive-dimensions copied to clipboard
Debounce Responsive hooks?
Hi, would it be possible to add a debounce to the responsive hooks, so the number of re-renders per time is limited?
At the moment the hook is firing very often during resizing the browser window or rotating the device, causing a lot of re-rendering.
something like this: https://github.com/jakob-p/react-native-responsive-dimensions/commit/12bf92f679229a591ef33fb15c3f61c88f87256a
I can open a PR if you want
Please can this PR be merged