Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android...
Domingos Manuel Capitango
Posted on November 28, 2020
I also had this bug, I was investigating, and then I came up with the solution that using expo will not solve, however, it can be hidden.
Write this code snippet in the scope of your component, after the imports:
LogBox.ignoreLogs(["Setting a timer"]);
const _console = _.clone(console);
console.warn = (message: string) => {
if (message.indexOf("Setting a timer") <= -1) {
_console.warn(message);
}
};
💖 💪 🙅 🚩
Domingos Manuel Capitango
Posted on November 28, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.