-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (18 loc) · 824 Bytes
/
index.js
File metadata and controls
23 lines (18 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react';
import { AppRegistry, I18nManager, LogBox } from 'react-native';
import { withTouchReload } from 'react-native-touch-reload';
import { Logger } from '@sendbird/uikit-utils';
import { name as appName } from './app.json';
import AppRoot from './src/App';
import { withUIKitLocalConfigs } from './src/context/uikitLocalConfigs';
import { withAppearance } from './src/hooks/useAppearance';
import './src/libs/notification';
Logger.setLogLevel('warn');
LogBox.ignoreLogs(['UIKit Warning', 'FileViewer > params.deleteMessage (Function)']);
I18nManager.allowRTL(true);
const App = withTouchReload(withAppearance(withUIKitLocalConfigs(AppRoot)));
function HeadlessCheck({ isHeadless }) {
if (isHeadless) return null;
return <App />;
}
AppRegistry.registerComponent(appName, () => HeadlessCheck);