-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
41 lines (37 loc) · 970 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
38
39
40
41
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View, Image, SafeAreaView } from "react-native";
import outputs from "./amplify_outputs.json";
import { Amplify } from "aws-amplify";
import {
Authenticator,
defaultDarkModeOverride,
ThemeProvider,
} from "@aws-amplify/ui-react-native";
import { SignOutButton } from "./components/SignOutButton";
import SessionList from "./Sessions";
Amplify.configure(outputs);
export default function App() {
return (
<ThemeProvider
theme={{
overrides: [defaultDarkModeOverride],
}}
colorMode={"dark"}
>
<Authenticator.Provider>
<Authenticator>
<SafeAreaView style={styles.container}>
<SignOutButton />
<SessionList />
</SafeAreaView>
</Authenticator>
</Authenticator.Provider>
</ThemeProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
padding: 8,
},
});