mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
30 lines
724 B
TypeScript
30 lines
724 B
TypeScript
import { View, Text } from "react-native-ui-lib";
|
|
import React, { useEffect } from "react";
|
|
import * as ScreenOrientation from "expo-screen-orientation";
|
|
import { InnerCalendar } from "../../calendar/InnerCalendar";
|
|
import TabletContainer from "../tablet_components/TabletContainer";
|
|
|
|
const TabletCalendarPage = () => {
|
|
const lockScreenOrientation = async () => {
|
|
await ScreenOrientation.lockAsync(
|
|
ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT
|
|
);
|
|
};
|
|
|
|
useEffect(() => {
|
|
lockScreenOrientation();
|
|
|
|
return () => {
|
|
ScreenOrientation.unlockAsync();
|
|
};
|
|
}, []);
|
|
|
|
return (
|
|
<TabletContainer>
|
|
<InnerCalendar />
|
|
</TabletContainer>
|
|
);
|
|
};
|
|
|
|
export default TabletCalendarPage;
|