I hope that you all are doing good. I wanted to ask for an easy way to create an exactly 1inch by 1inch view in React Native. The view should be the same irrespective of the device's ratio, size etc.
I want the view to be of 1inch.
I have tried different approaches but none worked since units in react native are not fixed. I also tried working with pixelratio and multiplying it by 160 to get an inch view, but none worked. So I want a solution that will work on every mobile device.
Thanks.
While there is no perfect method to make the UI responsive for all of device sizes, there are couple of guidelines for styling in react native I can provide from my experience to achieve this.
Perhaps this styling guideline article which I wrote will help you (Read the last bit)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With