Ben Borgers

How to get screen width in Expo

April 23, 2020

The screen width can be retrieved using the Dimensions package:

import Dimensions from "react-native"

Dimensions.get("window").width

Subscribe to my newsletter!

A weekly round-up of new blog posts and updates to projects I’m working on.