-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
37 lines (32 loc) · 908 Bytes
/
App.tsx
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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { decode, encode } from "base-64";
import MainStackNavigation from "./navigation/MainStackNavigation";
import { StyleSheet } from "react-native";
import { ToastProvider } from "react-native-toast-notifications";
import { Provider } from "react-native-paper";
import { navigationRef } from "./navigation/RootNavigation";
if (!global.btoa) {
global.btoa = encode;
}
if (!global.atob) {
global.atob = decode;
}
export default function App() {
return (
<Provider>
<ToastProvider>
<NavigationContainer ref={navigationRef}>
<MainStackNavigation />
</NavigationContainer>
</ToastProvider>
</Provider>
);
}
const styles = StyleSheet.create({
floatContainer: {
width: "100%",
height: "100%",
},
actions: { fontSize: 16, fontWeight: "bold" },
});