Created
March 15, 2018 07:12
-
-
Save rajatgeekyants/3cd7285b3c59e2c80c5fbfe32797a23f 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, { Component } from 'react'; | |
import { AppRegistry, StyleSheet, Text, View } from 'react-native'; | |
export default class LotsOfStyles extends Component { | |
render() { | |
return ( | |
<View style={styles.greybox}> | |
<Text>Lorem Ipsum</Text> | |
</View> | |
); | |
} | |
} | |
const styles = StyleSheet.create({ | |
greybox: { | |
backgroundColor: #e0e0e0, | |
width: 320px; | |
height: 240px; | |
font: 900 24px Georgia; | |
} | |
}) | |
// skip this line if using Create React Native App | |
AppRegistry.registerComponent('AwesomeProject', () => LotsOfStyles); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment