react-native-toolkit / react-native-responsive-dimensions

Resposive fontSize, height and width for react-native components, that automatically adjusts itself based on screen-size of the device.

Home Page:https://www.npmjs.com/package/react-native-responsive-dimensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debounce Responsive hooks?

jakob-p opened this issue · comments

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:
jakob-p@12bf92f

I can open a PR if you want

Please can this PR be merged