Skip to content

Instantly share code, notes, and snippets.

@peterlazar1993
Created May 1, 2016 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peterlazar1993/2ad88471be5afbcfc50a4903d6ebff83 to your computer and use it in GitHub Desktop.
Save peterlazar1993/2ad88471be5afbcfc50a4903d6ebff83 to your computer and use it in GitHub Desktop.
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,
};
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