I am using Function class in react native, now I open my app in portrait my screen design changes if I open the app in landscape my design works fine how to render the stylesheet in function class every time I change the orientation of the app?
Asked
Active
Viewed 376 times
0

TylerH
- 20,799
- 66
- 75
- 101

Kaushal Lalani
- 125
- 2
- 16
-
Possible duplicate https://stackoverflow.com/questions/47683591/react-native-different-styles-applied-on-orientation-change – Abe Apr 15 '22 at 05:27
-
@Abe I have a different problem if I open the app in landscape it works fine but if I open the app in portrait the style gets changed & the [https://www.npmjs.com/package/react-native-responsive-screen] works for the class component but my screen design is in function component is there any solution for function class. – Kaushal Lalani Apr 15 '22 at 05:50