Advertisement
Felanpro

React Native (Layouts)

May 14th, 2023
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import { StatusBar } from 'expo-status-bar';
  2. import { StyleSheet, Text, View, TouchableWithoutFeedback, TouchableOpacity, TouchableHighlight, Alert, Image, SafeAreaView, Button } from 'react-native';
  3.  
  4. export default function App() {
  5.  
  6.  
  7. return (
  8. <SafeAreaView style={styles.container}>
  9.  
  10. <View style = {{
  11. backgroundColor: 'dodgerblue',
  12. width: '50%',
  13. height: 70
  14.  
  15. }}>
  16.  
  17. </View>
  18.  
  19. <StatusBar style="auto" />
  20.  
  21. </SafeAreaView>
  22. );
  23. }
  24.  
  25. const containerStyle = {backgroundColor: "orange"};
  26.  
  27. const styles = StyleSheet.create({
  28. container: {
  29. flex: 1,
  30. backgroundColor: 'orange'
  31. },
  32. });
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement