Advertisement
Guest User

Untitled

a guest
Apr 13th, 2019
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Sample React Native App
  3.  * https://github.com/facebook/react-native
  4.  *
  5.  * @format
  6.  * @flow
  7.  */
  8.  
  9. import React, {Component} from 'react';
  10. import styled from 'styled-components/native'
  11.  
  12. type Props = {};
  13. export default class App extends Component<Props> {
  14.   render() {
  15.     return (
  16.       <Container>
  17.         <Welcome>Welcome to React Native!</Welcome>
  18.         <Instructions>To get started, edit App.js</Instructions>
  19.         <Instructions>R u ready kids?</Instructions>
  20.       </Container>
  21.     );
  22.   }
  23. }
  24. const Container = styled.View`
  25. flex: 1;
  26. justify-content: center;
  27. align-items: center;
  28. background-color: #FF0;
  29. `
  30.  
  31. const Welcome = styled.Text`
  32. font-size: 20;
  33. text-align: center;
  34. `
  35.  
  36. const Instructions = styled.Text`
  37. text-align: center;
  38. color: #333;
  39. margin-bottom: 5;
  40. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement