INNER CODE UNIT · TypeScript
newMsg
mowispace/react-native-logs · src/transports/fileAsyncTransport.ts:71
const newMsg = prevFile + item.msg;
await item.FS.writeAsStringAsync(item.file, newMsg);
} catch (error) {
console.error("Failed to write log to file (expo legacy):", error);
} finally {
EXPOelaborate = false;
EXPOqueue.shift();
if (EXPOqueue.length > 0) {
EXPOFSreadwrite().then();
}
}
};
const EXPOcheckqueue = async (
FS: Required<EXPOFS>,
file: string,
msg: string
) => {