2023-09-26 14:33:01 +08:00
|
|
|
import { StatusBar } from "expo-status-bar";
|
|
|
|
import {
|
|
|
|
Platform,
|
|
|
|
SafeAreaView,
|
|
|
|
StyleSheet,
|
|
|
|
Text,
|
|
|
|
View,
|
|
|
|
StatusBar as StatusBars,
|
|
|
|
Dimensions,
|
|
|
|
} from "react-native";
|
|
|
|
import Route from "./app/routes/route";
|
2023-09-12 08:15:01 +08:00
|
|
|
|
2023-09-26 14:33:01 +08:00
|
|
|
const height = Dimensions.get("window").height;
|
|
|
|
const width = Dimensions.get("window").width;
|
2023-09-12 08:15:01 +08:00
|
|
|
export default function App() {
|
|
|
|
return (
|
2023-09-26 14:33:01 +08:00
|
|
|
<SafeAreaView style={styles.container}>
|
|
|
|
<View style={styles.wrapper}>
|
|
|
|
<StatusBar style="auto" />
|
|
|
|
<Route />
|
|
|
|
</View>
|
|
|
|
</SafeAreaView>
|
2023-09-12 08:15:01 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
container: {
|
2023-09-26 14:33:01 +08:00
|
|
|
// flex: 1,
|
|
|
|
backgroundColor: "#ffff",
|
|
|
|
alignItems: "center",
|
|
|
|
// justifyContent: "center",
|
|
|
|
height: "100%",
|
|
|
|
paddingTop: Platform.OS === "android" ? StatusBars.currentHeight + 10 : "",
|
|
|
|
},
|
|
|
|
wrapper: {
|
|
|
|
height: "100%",
|
|
|
|
width: "100%",
|
|
|
|
// backgroundColor:"#333"
|
2023-09-12 08:15:01 +08:00
|
|
|
},
|
|
|
|
});
|