Skip to content

Instantly share code, notes, and snippets.

@nirsky
Created July 24, 2017 10:09
Show Gist options
  • Save nirsky/4e343b76d646e4c59d5aeaab4c67bad5 to your computer and use it in GitHub Desktop.
Save nirsky/4e343b76d646e4c59d5aeaab4c67bad5 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