Soluto by asurion
Published in

Soluto by asurion

Size Matters: How I used React Native to make my App look great on every device

So how can I make my app beautiful on the tablet as well?

How it looks without scaling

iPhone 7 vs. Galaxy Tab A 8.0" Tablet — No scaling

Method 1: Flex

iPhone 7 vs. Galaxy Tab A 8.0" Tablet — Flex

Method 2: Viewport Units

iPhone 7 vs. Galaxy Tab A 8.0" Tablet — Viewport Units

Method 3: Scaling Utils

  • scale(300) = 320
  • moderateScale(300) = 310
  • moderateScale(300, 0.25) = 305
  • scale(300) = 300 + 360 = 660
  • moderateScale(300) = 300 + 360/2 = 480
  • moderateScale(300, 0.25) = 300 + 360/4 = 390
iPhone 7 vs. Galaxy Tab A 8.0" Tablet — Scaling Utils

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store