Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added New Screens to allow the ability to add potlucks. #49

Merged
merged 4 commits into from
Mar 16, 2017

Conversation

ringong95
Copy link
Collaborator

Added 4 Screens to add potlucks. Closes #13

getValueInOnChange: (text) => text,
debounce: 500,
},
Theme: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this one uppercase?

onChangeHandler: 'onChangeText',
props: {
placeholder: 'Potluck Name',
style: styles.login
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

},
}
super(fields);
this.state.date = new Date()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use newlines to separate concerns. the call to super should have a newline after it

this.state.arriveTime = new Date()
this.state.servingTime = new Date()
}
onDateChange = (date) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add newlines between methods

arriveTime: time
})
}
onServingTimeChange = (time) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation


class FoodScreenContainer extends Component {
constructor() {
super()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't define a constructor you don't need to call super

onChangeText={(text) => {
(onTextChange(text))
}} />
<View>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is 1 too deep here

<View style={styles.buttonContainer}>
<TouchableHighlight
style={[styles.button, styles.inactive]}
onPress={() => (onIncrease())}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function name is weird here. On press, you increase, right? So it should be:

onPress={() => (increase())}

When you name something on[Action] the function should be an event handler.

</TouchableHighlight>
<TouchableHighlight
style={[styles.button, styles.active]}
onPress={() => (onDecrease())}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above.

constructor() {
super()
this.state = {
text: 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be called text? Or count?

@BlakeTurner BlakeTurner merged commit 3035dec into develop Mar 16, 2017
@BlakeTurner BlakeTurner deleted the feature-createPotluck branch March 16, 2017 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants