mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-14 18:00:32 +01:00
fix: return of export log
This commit is contained in:
@@ -4,7 +4,7 @@ import { FilterButton } from "@/components/filters/FilterButton";
|
|||||||
import { LogLevel, useLog, writeErrorLog } from "@/utils/log";
|
import { LogLevel, useLog, writeErrorLog } from "@/utils/log";
|
||||||
import * as FileSystem from "expo-file-system";
|
import * as FileSystem from "expo-file-system";
|
||||||
import { useNavigation } from "expo-router";
|
import { useNavigation } from "expo-router";
|
||||||
//import * as Sharing from "expo-sharing";
|
import * as Sharing from "expo-sharing";
|
||||||
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { ScrollView, TouchableOpacity, View } from "react-native";
|
import { ScrollView, TouchableOpacity, View } from "react-native";
|
||||||
@@ -48,7 +48,7 @@ export default function page() {
|
|||||||
FileSystem.writeAsStringAsync(uri, JSON.stringify(filteredLogs))
|
FileSystem.writeAsStringAsync(uri, JSON.stringify(filteredLogs))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
//Sharing.shareAsync(uri, { mimeType: "txt", UTI: "txt" });
|
Sharing.shareAsync(uri, { mimeType: "txt", UTI: "txt" });
|
||||||
})
|
})
|
||||||
.catch((e) =>
|
.catch((e) =>
|
||||||
writeErrorLog("Something went wrong attempting to export", e),
|
writeErrorLog("Something went wrong attempting to export", e),
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
"expo-router": "~4.0.17",
|
"expo-router": "~4.0.17",
|
||||||
"expo-screen-orientation": "~8.0.4",
|
"expo-screen-orientation": "~8.0.4",
|
||||||
"expo-sensors": "~14.0.2",
|
"expo-sensors": "~14.0.2",
|
||||||
"expo-sharing": "~13.0.1",
|
"expo-sharing": "~13.1.0",
|
||||||
"expo-splash-screen": "~0.29.22",
|
"expo-splash-screen": "~0.29.22",
|
||||||
"expo-status-bar": "~2.0.1",
|
"expo-status-bar": "~2.0.1",
|
||||||
"expo-system-ui": "~4.0.8",
|
"expo-system-ui": "~4.0.8",
|
||||||
|
|||||||
Reference in New Issue
Block a user