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
Step 1:- Import "Dimensions" api from 'react-native'
import { Dimensions } from 'react-native';
Step 2:- Get Dimensions (Window width/height)
const { width, height } = Dimensions.get("window");
Step 3:- Use width and height variable.
test