-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
53 lines (48 loc) · 1.1 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
import { StatusBar as ExpoStatusBar } from "expo-status-bar";
import {
StyleSheet,
View,
SafeAreaView,
Platform,
StatusBar,
} from "react-native";
import { Header } from "./components/Header";
import { PostList } from "./features/post/components/PostList";
const App = () => {
return (
<View style={styles.outWrapper}>
<SafeAreaView style={styles.topSafeArea} />
<SafeAreaView style={styles.safeAreaWrapper}>
<View style={styles.container}>
<Header />
<View style={styles.postListContainer}>
<PostList />
</View>
</View>
</SafeAreaView>
<ExpoStatusBar style="auto" />
</View>
);
};
const styles = StyleSheet.create({
outWrapper: {
flex: 1,
},
topSafeArea: {
backgroundColor: "#FFFFFF",
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0,
},
safeAreaWrapper: {
flex: 1,
backgroundColor: "#F6F6F4",
},
container: {
flex: 1,
backgroundColor: "#F6F6F4",
},
postListContainer: {
paddingTop: 16,
paddingHorizontal: 15,
},
});
export default App;