I just built the most insanely amazing complex app in the last 6 months for iOS and Android using React native.
Everything was perfect and everything works great ...
I developed iPhone 4s, 5, 6, 6+ using a special component that I wrote, which basically works like ...
override: { ip4: { fontSize: 8 }, ip5: { fontSize: 10 } }
and etc.
It really worked great for iOS.
Today I opened GA and was terrified to realize that I had forgotten the Android style. I looked at our Google analytics and there literally ... 700 screen sizes, which are all different.
I am completely confused by the prospect of designing for all of these, especially considering that they have a density of several pixels.
My question is: WHAT am I actually doing for accounting ...
- fields / intervals (mostly common integers to fill in or something else)
- font size
These are two things that I am very confused about how to handle all the different combinations.
I looked at PixelRatio , but I have no idea how to use it, or even if I'm on the right track.
How do most people deal with this?
source share