-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
index.android.js
23 lines (19 loc) · 883 Bytes
/
index.android.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-FileCopyrightText: 2018-2022 The Manyverse Authors
//
// SPDX-License-Identifier: MPL-2.0
import 'react-native-ssb-shims';
import {URL, URLSearchParams} from 'react-native-url-polyfill';
globalThis.URL = URL;
globalThis.URLSearchParams = URLSearchParams;
import {run} from 'cycle-native-navigation';
import {screens, drivers} from './lib/frontend/index';
import {welcomeLayout, defaultNavOptions} from './lib/frontend/screens/layouts';
import setupSentryMobile from './setup-sentry-mobile';
// import MessageQueue from 'react-native/Libraries/BatchedBridge/MessageQueue';
// Has to be done before setup Sentry, otherwise app gets stuck on splashscreen
run(screens, drivers, welcomeLayout, defaultNavOptions);
setupSentryMobile();
// MessageQueue.spy((msg) => {
// if (msg.module === 'WebSocketModule') return;
// console.log(msg.type, msg.module, msg.method);
// });