Files
cally/components/pages/(tablet_pages)/calendar/TabletCalendarPage.tsx
2024-11-03 18:39:32 +01:00

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;