Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(rn) remove no longer needed hack

Saúl Ibarra Corretgébdd8400057bf
diff --git a/react/index.native.js b/react/index.native.js
index b2c35be20b..231d9b88cd 100644
--- a/react/index.native.js
+++ b/react/index.native.js
@@ -13,10 +13,7 @@ import { AppRegistry } from 'react-native';
import { App } from './features/app/components';
import { _initLogging } from './features/base/logging/functions';
-import JitsiThemePaperProvider
- from './features/base/ui/components/JitsiThemeProvider';
-
-declare var __DEV__;
+import JitsiThemePaperProvider from './features/base/ui/components/JitsiThemeProvider';
/**
* The type of the React {@code Component} props of {@link Root}.
@@ -56,25 +53,5 @@ class Root extends PureComponent<Props> {
// Initialize logging.
_initLogging();
-// HORRIBLE HACK ALERT! React Native logs the initial props with `console.log`. Here we are quickly patching it
-// to avoid logging potentially sensitive information.
-if (!__DEV__) {
- /* eslint-disable */
-
- const __orig_console_log = console.log;
- const __orig_appregistry_runapplication = AppRegistry.runApplication;
-
- AppRegistry.runApplication = (...args) => {
- // $FlowExpectedError
- console.log = () => {};
- __orig_appregistry_runapplication(...args);
- // $FlowExpectedError
- console.log = __orig_console_log;
- };
-
- /* eslint-enable */
-}
-
-
// Register the main/root Component of JitsiMeetView.
AppRegistry.registerComponent('App', () => Root);