rn-custom-style-sheet
Version:
React Native component to select a specific value from a range of values.
18 lines (17 loc) • 509 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = useCurrentOrientation;
var _Reducer = require("../../Reducer");
var _UseThemeContext = require("../UseThemeContext");
function useCurrentOrientation() {
const {
state: {
orientation,
isSupportedOrientation
}
} = (0, _UseThemeContext.useThemeContext)();
return isSupportedOrientation ? orientation : _Reducer.OrientationEnum.Portrait;
}
//# sourceMappingURL=UseCurrentOrientation.js.map