Skip to content

Instantly share code, notes, and snippets.

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