Answers for "how to get width of screen in react native"

9

dimensions react native

import { Dimensions } from 'react-native';

console.log({
	width: Dimensions.get('window').width,
	height: Dimensions.get('window').height
})
Posted by: Guest on June-11-2020
0

react-native how to get size of screen

import { Dimensions } from 'react-native';

dimensions: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height
}
Posted by: Guest on June-06-2021

Code answers related to "how to get width of screen in react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language