Super nice! I’d been using this hook so far, looks like I can easily replace it with react-responsive:

import { Dimensions } from 'react-native';
import { useEffect, useState } from 'react';
const useWindowDimensions = () => { const [screenData, setScreenData] = useState(Dimensions.get('window'));
useEffect(() => {
const onChange = result =>
Dimensions.addEventListener('change', onChange);return () => Dimensions.removeEventListener('change', onChange); }); return {
isLandscape: screenData.width > screenData.height,
isLargeScreen: screenData.width > 1000
export default useWindowDimensions;

Software Developer, currently at Shopify

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store