Ben Borgers

⇢ Twitter

How to get screen width in Expo

The screen width can be retrieved using the Dimensions package:

import Dimensions from "react-native"

Dimensions.get("window").width

--

Last updated January 24, 2021