How do I get screen width in React native?
(I need it because I use some absolute components that overlap and their position on screen changes with different device
Only two simple steps.
import { Dimensions } from 'react-native'
const { height } = Dimensions.get('window');
now the window screen height is stored in the height variable.