INNER CODE UNIT · TypeScript

EXPONEXTFSappend

mowispace/react-native-logs · src/transports/fileAsyncTransport.ts:176

const EXPONEXTFSappend = async (FS: EXPONEXTFS, file: string, msg: string) => {
  try {
    EXPONEXTFSqueue.push({ FS, file, msg });
    if (!EXPONEXTFSelaborate) {
      await EXPONEXTFSprocessQueue();
    }
    return true;
  } catch (error) {
    console.error(error);
    return false;
  }
};

const dateReplacer = (filename: string, type?: "eu" | "us" | "iso") => {
  let today = new Date();
  let d = today.getDate();
  let m = today.getMonth() + 1;
  let y = today.getFullYear();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…