forked from Ninjalama/streamyfin_mirror
wip
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { Orientation, OrientationLock } from "expo-screen-orientation";
|
||||
import {
|
||||
Orientation,
|
||||
OrientationLock,
|
||||
} from "@/packages/expo-screen-orientation";
|
||||
|
||||
function orientationToOrientationLock(
|
||||
orientation: Orientation
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as ScreenOrientation from "expo-screen-orientation";
|
||||
import * as ScreenOrientation from "@/packages/expo-screen-orientation";
|
||||
import { atom } from "jotai";
|
||||
|
||||
export const orientationAtom = atom<number>(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { atom, useAtom } from "jotai";
|
||||
import { useEffect } from "react";
|
||||
import * as ScreenOrientation from "expo-screen-orientation";
|
||||
import * as ScreenOrientation from "@/packages/expo-screen-orientation";
|
||||
import { storage } from "../mmkv";
|
||||
import { Platform } from "react-native";
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import * as BackgroundFetch from "expo-background-fetch";
|
||||
import { Platform } from "react-native";
|
||||
const BackgroundFetch = !Platform.isTV
|
||||
? require("expo-background-fetch")
|
||||
: null;
|
||||
|
||||
export const BACKGROUND_FETCH_TASK = "background-fetch";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user