This commit is contained in:
Fredrik Burmester
2024-08-30 00:13:15 +02:00
parent 8c0e7f7db8
commit bbaab1994a
3 changed files with 31 additions and 22 deletions

View File

@@ -0,0 +1,7 @@
import * as ScreenOrientation from "expo-screen-orientation";
import { Orientation } from "expo-screen-orientation";
import { atom } from "jotai";
export const orientationAtom = atom<number>(
ScreenOrientation.OrientationLock.PORTRAIT_UP
);