Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native dimensions

import { useWindowDimensions } from 'react-native';

const { height, width } = useWindowDimensions();
/* useWindowDimensions automatically updates 
   all of its values when screen size or font scale changes. */
Source by reactnativemaster.com #
 
PREVIOUS NEXT
Tagged: #react #native #dimensions
ADD COMMENT
Topic
Name
5+6 =