Advertisement
hsianghui

Untitled

Dec 5th, 2023
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import { StatusBar } from "expo-status-bar";
  2. import { StyleSheet, Text, View } from "react-native";
  3.  
  4. export default function App() {
  5. return (
  6. <View style={styles.container}>
  7. <Text style={styles.textStyle}>Hello World</Text>
  8. <StatusBar style="auto" />
  9. </View>
  10. );
  11. }
  12.  
  13. const styles = StyleSheet.create({
  14. container: {
  15. flex: 1,
  16. backgroundColor: "#a20000",
  17. alignItems: "center",
  18. justifyContent: "center",
  19. },
  20. textStyle: {
  21. color: "#fff",
  22. fontSize: 30,
  23. },
  24. });
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement