Skip to content

Instantly share code, notes, and snippets.

@rajatgeekyants
Created March 15, 2018 07:12
Show Gist options
  • Save rajatgeekyants/3cd7285b3c59e2c80c5fbfe32797a23f to your computer and use it in GitHub Desktop.
Save rajatgeekyants/3cd7285b3c59e2c80c5fbfe32797a23f to your computer and use it in GitHub Desktop.
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