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

RN method roundToNearestPixel is not used

marudy opened this issue · comments

Hi @DaniAkash,

your solution is good, I use a very similar one for my RN projects. The difference from my solution is that I use roundToNearestPixel RN method that rounds a layout size (dp) to the nearest layout size that corresponds to an integer number of pixels. And I was about to create a npm package of my own until I saw yours.

I would be happy to provide a PR, if you are actively maintaining this package :)

Thanks

@DaniAkash any updates?

Thanks

Thanks @marudy PRs are welcome. I'll be publishing a new release soon