-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.tsx
More file actions
49 lines (45 loc) · 1.19 KB
/
App.tsx
File metadata and controls
49 lines (45 loc) · 1.19 KB
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
42
43
44
45
46
47
48
49
import { ScrollView, StyleSheet, Text, View } from "react-native";
import { AlertContainer } from "react-native-alert-queue";
import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context";
import { Basics } from "./containers/Basics";
import { Confetti } from "./containers/Confetti";
import { Customizations } from "./containers/Customizations";
import { KeyboardAvoiding } from "./containers/Keyboard";
import { Updating } from "./containers/Updating";
export default function App() {
return (
<SafeAreaProvider>
<View style={styles.container}>
<SafeAreaView style={styles.wrapper}>
<Text style={styles.title}>React Native Alert Queue</Text>
<ScrollView contentContainerStyle={styles.scrollViewContent}>
<Basics />
<Customizations />
<Updating />
<KeyboardAvoiding />
<Confetti />
</ScrollView>
</SafeAreaView>
<AlertContainer />
</View>
</SafeAreaProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
wrapper: {
flex: 1,
},
scrollViewContent: {
paddingHorizontal: 20,
paddingBottom: 20,
},
title: {
fontSize: 26,
fontWeight: "bold",
marginVertical: 20,
textAlign: "center",
},
});