fix(logs): change the mimeType and UTI to the proper types for log ex… (#1424)

This commit is contained in:
quang-tran
2026-02-19 01:39:29 -05:00
committed by GitHub
parent 9f9d949891
commit 8c0cbffd98

View File

@@ -61,7 +61,10 @@ export default function Page() {
setLoading(true);
try {
logsFile.write(JSON.stringify(filteredLogs));
await Sharing.shareAsync(logsFile.uri, { mimeType: "txt", UTI: "txt" });
await Sharing.shareAsync(logsFile.uri, {
mimeType: "text/plain",
UTI: "public.plain-text",
});
} catch (e: any) {
writeErrorLog("Something went wrong attempting to export", e);
} finally {