useMobileLandscape

React hook that returns true if the mobile device is in landscape mode and false otherwise.

Usage

Live Editor
function Demo() {
  const isMobileLandscape = useMobileLandscape();
  return <p>isMobileLandscape: {JSON.stringify(isMobileLandscape)}</p>;
};
Result

API

useMobileLandscape

Returns

boolean: whether is mobile landscape

Arguments