Created
May 1, 2016 18:13
-
-
Save peterlazar1993/2ad88471be5afbcfc50a4903d6ebff83 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
export default class Practice extends Component { | |
render() { | |
return ( | |
<Card style={styles.card}> | |
<Card.Body> | |
<Text style={[TYPO.paperFontHeadline, COLOR.paperCyan500, { marginVertical: 5 }]}> | |
Hey {this.props.userName}, | |
</Text> | |
<View style={{ marginVertical: 5 }}> | |
<Text style={[TYPO.paperFontBody1]}>Good Evening :)</Text> | |
<Text style={[TYPO.paperFontBody1]}>How was your practice today?</Text> | |
</View> | |
</Card.Body> | |
<Divider theme="light" style={{ marginTop: 5, marginBottom: 5 }} /> | |
<EmojiStrip | |
type="EmojiStrip" | |
name="selectedEmoji" | |
selected="" | |
/> | |
</Card> | |
); | |
} | |
} | |
Practice.propTypes = { | |
userName: PropTypes.string.isRequired, | |
}; |
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
export default class PracticeDetails extends Component { | |
render() { | |
return ( | |
<ScrollView style={styles.container}> | |
<Form ref="form" customFields={customFields} > | |
<Practice userName={this.props.user.name.split(' ')[0]} /> | |
<Duration /> | |
<PracticeStyle /> | |
<Note /> | |
</Form> | |
<Button | |
onPress={() => console.log(this.refs.form.getValues())} | |
text="Submit" | |
primary={'paperCyan'} | |
theme="dark" | |
raised | |
/> | |
</ScrollView> | |
); | |
} | |
} | |
PracticeDetails.propTypes = { | |
user: PropTypes.object.isRequired, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment