'Layout responsiveness for mobile only in react native
I am learning about react native layouts and according to my understanding, dp unit is not responsive on all devices. My layout is overflowing on smaller devices such as on 5 inch screens. How can I make sure my app is fully responsive on mobile only?
Solution 1:[1]
For that you can use the the Dimensions API to find the display size and then you can render different styles and ui placements for different display sizes. Define width and height with a percentage will work like charm than using dp units.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Thilina Rathnayake |
