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);