Skip to content

Instantly share code, notes, and snippets.

@nirsky
Created July 24, 2017 10:08
Show Gist options
  • Save nirsky/6606667c28aa9676fe92f7edeb0edebe to your computer and use it in GitHub Desktop.
Save nirsky/6606667c28aa9676fe92f7edeb0edebe to your computer and use it in GitHub Desktop.
import React from 'react';
import { View, Text, Dimensions, StyleSheet, TouchableOpacity } from 'react-native';
import { loremIpsum } from './contants';
const { width, height } = Dimensions.get('window');
const AwesomeComponent = () =>
<View style={styles.container}>
<View style={styles.box}>
<Text style={styles.title}>Awesome Blog Post Page</Text>
<Text style={styles.text}>{loremIpsum}</Text>
<View style={styles.buttonsContainer}>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Accept</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>Decline</Text>
</TouchableOpacity>
</View>
</View>
</View>;
export default AwesomeComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment