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

9

device height 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

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language