Using the new useWindowDimensions hook:
useWindowDimensions
import { useWindowDimensions } from 'react-native'; const {height, width} = useWindowDimensions(); const isLandscape = width > height;