Last active
April 25, 2018 15:38
-
-
Save mcavaliere/d00295bc6f8357ce1cbe55eea1f91ef7 to your computer and use it in GitHub Desktop.
React Native Design Systems: Messy Cascading Example
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
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