Answers for "how to use device width or height in react"

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

Code answers related to "how to use device width or height in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language