|
@@ -13,10 +13,7 @@ import { AppRegistry } from 'react-native';
|
13
|
13
|
|
14
|
14
|
import { App } from './features/app/components';
|
15
|
15
|
import { _initLogging } from './features/base/logging/functions';
|
16
|
|
-import JitsiThemePaperProvider
|
17
|
|
- from './features/base/ui/components/JitsiThemeProvider';
|
18
|
|
-
|
19
|
|
-declare var __DEV__;
|
|
16
|
+import JitsiThemePaperProvider from './features/base/ui/components/JitsiThemeProvider';
|
20
|
17
|
|
21
|
18
|
/**
|
22
|
19
|
* The type of the React {@code Component} props of {@link Root}.
|
|
@@ -56,25 +53,5 @@ class Root extends PureComponent<Props> {
|
56
|
53
|
// Initialize logging.
|
57
|
54
|
_initLogging();
|
58
|
55
|
|
59
|
|
-// HORRIBLE HACK ALERT! React Native logs the initial props with `console.log`. Here we are quickly patching it
|
60
|
|
-// to avoid logging potentially sensitive information.
|
61
|
|
-if (!__DEV__) {
|
62
|
|
- /* eslint-disable */
|
63
|
|
-
|
64
|
|
- const __orig_console_log = console.log;
|
65
|
|
- const __orig_appregistry_runapplication = AppRegistry.runApplication;
|
66
|
|
-
|
67
|
|
- AppRegistry.runApplication = (...args) => {
|
68
|
|
- // $FlowExpectedError
|
69
|
|
- console.log = () => {};
|
70
|
|
- __orig_appregistry_runapplication(...args);
|
71
|
|
- // $FlowExpectedError
|
72
|
|
- console.log = __orig_console_log;
|
73
|
|
- };
|
74
|
|
-
|
75
|
|
- /* eslint-enable */
|
76
|
|
-}
|
77
|
|
-
|
78
|
|
-
|
79
|
56
|
// Register the main/root Component of JitsiMeetView.
|
80
|
57
|
AppRegistry.registerComponent('App', () => Root);
|