From 8a2049f2ab65aa085575e5e49e3f483cd6affb19 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 2 Oct 2018 09:23:22 -0400 Subject: [PATCH] Hide warnings caused by React Native (#2202) --- app/mattermost.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/mattermost.js b/app/mattermost.js index fc8a9c57c..a42d1e6e4 100644 --- a/app/mattermost.js +++ b/app/mattermost.js @@ -10,6 +10,7 @@ import { Keyboard, NativeModules, Platform, + YellowBox, } from 'react-native'; const {StatusBarManager, MattermostShare, Initialization} = NativeModules; @@ -53,6 +54,9 @@ import './fetch_preconfig'; const AUTHENTICATION_TIMEOUT = 5 * 60 * 1000; +// Hide warnings caused by React Native (https://github.com/facebook/react-native/issues/20841) +YellowBox.ignoreWarnings(['Require cycle: node_modules/react-native/Libraries/Network/fetch.js']); + export const app = new App(); export const store = configureStore(initialState); registerScreens(store, Provider);