Skip to content

Instantly share code, notes, and snippets.

@mcavaliere
Last active April 25, 2018 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcavaliere/d00295bc6f8357ce1cbe55eea1f91ef7 to your computer and use it in GitHub Desktop.
Save mcavaliere/d00295bc6f8357ce1cbe55eea1f91ef7 to your computer and use it in GitHub Desktop.
React Native Design Systems: Messy Cascading Example
class MessyCardComponent extends Component {
render() {
return (
<View style={[ CardComponentStyles.container, LayoutStyles.wideMargin, GlobalStyles.shadedBox ]}>
<View style={[ CardComponentStyles.headingBar, LayoutStyles.smPadding, BackgroundColors.mediumGreen ]}>
<Text style={[ TypographyStyles.heading1, Colors.textAbsoluteBlack ]}>{ this.props.title }</Text>
</View>
<View style={[ CardComponentStyles.contentContainer, BackgroundColors.offWhite ]}>
<Text style={[ TypographyStyles.bodyText, Colors.textAbsoluteBlack ]}>{ this.props.children }</Text>
</View>
</View>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment