Advertisement
La_JennyLove

Styling

Feb 24th, 2021 (edited)
1,240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  *
  3.  *
  4.  */
  5.  
  6. import React from "react";
  7. import { SafeAreaView, StatusBar } from "react-native";
  8. import styled from "styled-components";
  9. import { AntDesign } from "@expo/vector-icons";
  10.  
  11. export default function App() {
  12.  
  13.   return(
  14.     <Container>
  15.       <StatusBar barStyle="light-content" />
  16.       <RecipeBackground source={require('./assets/43660.jpg')}>
  17.         <SafeAreaView>
  18.           <MenuBar>
  19.             <Back>
  20.               <Text style={{ marginLeft:10 }}>AppTest</Text>
  21.             </Back>
  22.           </MenuBar>
  23.         </SafeAreaView>
  24.       </RecipeBackground>
  25.  
  26.     </Container>
  27.   );
  28.  
  29. }
  30.  
  31. const Container = styled.View`
  32.   flex: 1;
  33.   background-color: #fff;
  34. `
  35. const Text = styled.Text`
  36.   color: ${(props) => (props.dark ? "#000" : "#fff")};
  37.   font-family: AvenirNext-Regular;
  38. `
  39.  
  40. const RecipeBackground = styled.ImageBackground`
  41.   width: 100%;
  42. `
  43. const MenuBar = styled.View`
  44.   flex-direction: row;
  45.   justify-content: space-between;
  46.   padding: 16px;
  47. `
  48. const Back = styled.View`
  49.   flex-direction: row;
  50.   align-items: center;
  51. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement