Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native get screen height and width

import { Dimensions } from 'react-native';

const windowWidth = Dimensions.get('window').width;
const windowHeight = Dimensions.get('window').height;
Source by reactnative.dev #
 
PREVIOUS NEXT
Tagged: #react #native #screen #height #width
ADD COMMENT
Topic
Name
5+4 =