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

Feature/shops #3

Merged
merged 7 commits into from
Oct 30, 2017
Merged

Feature/shops #3

merged 7 commits into from
Oct 30, 2017

Conversation

MendicantBias90
Copy link
Collaborator

  • Add a Shop TabNavigator
  • Add shop screens
  • Customizable ShopRow component
  • Init CategoryPicker component
  • Load assets
  • Add colour constants

import OnlineShops from './screen/OnlineShops';
import SearchShop from './screen/SearchShop';

const Shops = TabNavigator(
Copy link

Choose a reason for hiding this comment

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

Please, move TabNavigator to ./screen/Shops as we made for Coupons

renderChoices() {
return (
<View style={styles.choiceContainer}>
<TouchableOpacity
Copy link

Choose a reason for hiding this comment

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

Consider to use a single array for categories and iterate on it to create choices

{this.props.shop.distance && (
<Text style={styles.distance}>
{this.props.shop.distance >= 1000
? `${this.props.shop.distance / 1000}km`
Copy link

Choose a reason for hiding this comment

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

Consider to use number.toFixed(2) to limit the decimal digits

return (
<View style={styles.container}>
<FlatList
data={[
Copy link

Choose a reason for hiding this comment

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

Please, use an external array with fixtures data. It will be easier to replace it with dynamic data

@Takeno Takeno merged commit 39f3102 into master Oct 30, 2017
@Takeno Takeno deleted the feature/shops branch October 30, 2017 11:18
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.

2 participants