-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (36 loc) · 1.15 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import * as React from "react";
import "react-native-gesture-handler";
import { AppRegistry } from "react-native";
import { MD3DarkTheme, Provider as PaperProvider } from "react-native-paper";
import App from "./App";
import { name as appName } from "./app.json";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { Configuration } from "./src/wiring/Configuration";
import { ConnectionManager } from "./src/state/ConnectionManager";
import { ProfileManager } from "./src/state/ProfileManager";
import { ChatManager } from "./src/state/ChatManager";
import { NavigationContainer } from "@react-navigation/native";
const theme = {
...MD3DarkTheme,
colors: {
...MD3DarkTheme.colors,
primary: "#90caf9",
text: "#ffffff",
},
};
export default function Main() {
Configuration.inject();
ProfileManager.initialize();
ConnectionManager.initialize();
ChatManager.initialize();
return (
<SafeAreaProvider>
<PaperProvider theme={theme}>
<NavigationContainer>
<App />
</NavigationContainer>
</PaperProvider>
</SafeAreaProvider>
);
}
AppRegistry.registerComponent(appName, () => Main);