Created
July 24, 2017 10:08
-
-
Save nirsky/6606667c28aa9676fe92f7edeb0edebe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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