-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
41 lines (39 loc) · 772 Bytes
/
App.js
File metadata and controls
41 lines (39 loc) · 772 Bytes
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 as ExpoStatusBar } from "expo-status-bar";
import {
Platform,
SafeAreaView,
StatusBar,
StyleSheet,
Text,
View,
} from "react-native";
const isAndroid = Platform.OS === "android";
export default function App() {
return (
<>
<SafeAreaView style={{ flex: 1, marginTop: StatusBar.currentHeight }}>
<View style={styles.search}>
<Text>Search</Text>
</View>
<View style={styles.list}>
<Text>List</Text>
</View>
</SafeAreaView>
<ExpoStatusBar />
</>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
search: {
backgroundColor: "green",
padding: 16,
},
list: {
backgroundColor: "blue",
flex: 1,
padding: 16,
},
});