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

responsiveFontSize() not working on samsung glaxy note 8

amitrai988 opened this issue · comments

for ios its working fine below is screenshot
simulator screen shot - iphone 6 - 2018-04-25 at 14 54 46

but for androd its not working only on this device
screenshot_20180423-134218

Device specification :-

Resolution | 1440 x 2960 pixels, 18.5:9 ratio (~521 ppi density)
Size | 6.3 inches, 101.1 cm2 (~83.2% screen-to-body ratio)

responsiveFontSize uses device height and width to calculate the fontSize. I think the font is bigger cuz the screen height is bigger in Samsung. Try using responsiveWidth for the font size...

Version 2.0.0 has been released which will calculate responsiveFontSize using width alone and hence will look uniform across all devices despite the aspect ratio...