Answers for "Make a ReactNative component take the height and width of the current window"

0

Make a ReactNative component take the height and width of the current window

import { Dimensions } from 'react-native'; //Import the Dimensions

<View 
style={{width: Dimensions.get('window').width, 
  height: Dimensions.get('window').height }} />

//You can customize this as you want
Posted by: Guest on January-03-2022

Code answers related to "Make a ReactNative component take the height and width of the current window"

Code answers related to "Javascript"

Browse Popular Code Answers by Language