stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
13 lines • 491 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useScreenOrientation = void 0;
var _reactNative = require("react-native");
var useScreenOrientation = () => {
var _useWindowDimensions = (0, _reactNative.useWindowDimensions)(),
height = _useWindowDimensions.height,
width = _useWindowDimensions.width;
return width > height ? 'landscape' : 'portrait';
};
exports.useScreenOrientation = useScreenOrientation;
//# sourceMappingURL=useScreenOrientation.js.map