Skip to content

Instantly share code, notes, and snippets.

View cherniavskii's full-sized avatar

Andrew Cherniavskii cherniavskii

View GitHub Profile
@cherniavskii
cherniavskii / App.jsx
Created March 29, 2020 17:34
React Query + React Navigation
import React, { useEffect } from 'react';
import {
StyleSheet,
View,
Text,
AppState,
Button,
} from 'react-native';
import { Colors } from 'react-native/Libraries/NewAppScreen';
// See https://github.com/mrdoob/three.js/pull/14483
const consoleWarn = window.console.warn;
window.console.warn = function() {
const string = arguments[0];
const filterStrings = [
'is not power of two',
'image is too big',
'marked for update',
];
// filter warnings containing above strings