You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ The dimensions auto adjust based on the window size (view port) or the screen si
8
8
9
9
Support for responsive dimension hooks to help auto-adjust dimensions for devices whose display or screen sizes may change such as foldable phones or browser windows! 😎
-[Using the Responsive Hooks (react-native-web)][responsive-hooks-example]
163
163
164
+
## Why Responsive Dimensions
165
+
166
+
I built responsive dimensions as a personal tool to tackle some of my problems I face during my everyday app development. You might want to use it if your usecase comes under one of the following scenarios.
167
+
168
+
- While working with React Native UI (especially animations) there are lots of scenarios that require calculating a certain percentage of the display area.
169
+
170
+
- If your app supports tablets then you might want to scale some of your fonts & UI Components based on the display size.
171
+
172
+
- If you are using react-native-web or targetting foldable devices your UI needs to react to the changes in the window dimensions.
0 commit comments