Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 04e5ffb

Browse files
committed
update readme links
1 parent 081a698 commit 04e5ffb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ One of the most important feedback received from the community is that handling
4545

4646
To address this, taking advantage of the new React Hooks API, responsive dimensions now include three custom hooks `useResponsiveHeight`, `useResponsiveWidth`, `useResponsiveFontSize` which will automatically re-calculate the responsive height, width and font size every time the device orientation or the display size changes.
4747

48-
An example project has been included in RNResponsiveDimensionsExample directory which will explain how to use the new custom hooks and how they will differ from the usual responsive functions.
48+
An example project has been included in [RNResponsiveDimensionsExample](https://github.com/DaniAkash/react-native-responsive-dimensions/tree/master/RNResponsiveDimensionsExample) directory which will explain how to use the new custom hooks and how they will differ from the usual responsive functions.
49+
50+
In portrait mode, both of them will produce the same result:
51+
![responsive-dimensions](./assets/Screenshot%202019-10-02%20at%2010.39.44%20PM.png)
52+
53+
However, in landscape mode, only the views using responsive hooks will be updated as per the new height & width:
54+
![responsive-dimensions](./assets/Screenshot%202019-10-02%20at%2010.39.51%20PM.png)
4955

5056
## License
5157

0 commit comments

Comments
 (0)