react native dimensions window vs screen 1

react native dimensions window vs screen

 const screenWidth = Math.round(Dimensions.get('window').width);

Here is what the above code is Doing:
1. We’re importing the Dimensions API from React Native.
2. We’re creating a variable called screenWidth and assigning it the value of the screen width.

Similar Posts