Skip to content

Instantly share code, notes, and snippets.

View AlienDev66's full-sized avatar
👽
In space

Domingos Capitango AlienDev66

👽
In space
View GitHub Profile
@AlienDev66
AlienDev66 / setting.json
Last active September 19, 2020 01:08
Setting.json.
{
"terminal.integrated.fontSize": 14,
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.tabSize": 1,
"editor.fontSize": 13,
"editor.lineHeight": 25,
"editor.fontFamily": "Fira Code",
@AlienDev66
AlienDev66 / my-readme.md
Last active September 27, 2020 01:19
My readme.md all stuffed and with illustrations - README.MD complete.

Domingos Capitango

Twitter Badge Linkedin Badge Gmail Badge YouTube Badge

@AlienDev66
AlienDev66 / gist:59e7ecdc5a036ba72536015384f4dcad
Created November 28, 2020 11:17
Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/react-native/issues/12981 for more info.
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);
}