Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Sample React Native App
- * https://github.com/facebook/react-native
- *
- * @format
- * @flow
- */
- import React, {Component} from 'react';
- import styled from 'styled-components/native'
- type Props = {};
- export default class App extends Component<Props> {
- render() {
- return (
- <Container>
- <Welcome>Welcome to React Native!</Welcome>
- <Instructions>To get started, edit App.js</Instructions>
- <Instructions>R u ready kids?</Instructions>
- </Container>
- );
- }
- }
- const Container = styled.View`
- flex: 1;
- justify-content: center;
- align-items: center;
- background-color: #FF0;
- `
- const Welcome = styled.Text`
- font-size: 20;
- text-align: center;
- `
- const Instructions = styled.Text`
- text-align: center;
- color: #333;
- margin-bottom: 5;
- `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement