height dimensions react native code example
Example 1: dimensions react native
import { Dimensions } from 'react-native';
console.log({
width: Dimensions.get('window').width,
height: Dimensions.get('window').height
})
Example 2: width 100% react native
import { Dimensions } from 'react-native';
width: ${(Dimensions.get('window').width)}px;