79280788

Date: 2024-12-14 14:24:30
Score: 1
Natty:
Report link

Using the new useWindowDimensions hook:

import { useWindowDimensions } from 'react-native';

const {height, width} = useWindowDimensions();
const isLandscape = width > height;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jakob Schödl