fix: return of export log

This commit is contained in:
sarendsen
2025-04-07 14:33:03 +02:00
parent 8b3f950bc5
commit 2a4a7f5f2d
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import { FilterButton } from "@/components/filters/FilterButton";
import { LogLevel, useLog, writeErrorLog } from "@/utils/log";
import * as FileSystem from "expo-file-system";
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 { useTranslation } from "react-i18next";
import { ScrollView, TouchableOpacity, View } from "react-native";
@@ -48,7 +48,7 @@ export default function page() {
FileSystem.writeAsStringAsync(uri, JSON.stringify(filteredLogs))
.then(() => {
setLoading(false);
//Sharing.shareAsync(uri, { mimeType: "txt", UTI: "txt" });
Sharing.shareAsync(uri, { mimeType: "txt", UTI: "txt" });
})
.catch((e) =>
writeErrorLog("Something went wrong attempting to export", e),

View File

@@ -57,7 +57,7 @@
"expo-router": "~4.0.17",
"expo-screen-orientation": "~8.0.4",
"expo-sensors": "~14.0.2",
"expo-sharing": "~13.0.1",
"expo-sharing": "~13.1.0",
"expo-splash-screen": "~0.29.22",
"expo-status-bar": "~2.0.1",
"expo-system-ui": "~4.0.8",