dimensions react native

JavaScript
import { Dimensions } from 'react-native';

console.log({
	width: Dimensions.get('window').width,
	height: Dimensions.get('window').height
})
Source

Also in JavaScript: