-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
MendicantBias90
commented
Oct 29, 2017
- Add a Shop TabNavigator
- Add shop screens
- Customizable ShopRow component
- Init CategoryPicker component
- Load assets
- Add colour constants
src/MainNavigation.js
Outdated
import OnlineShops from './screen/OnlineShops'; | ||
import SearchShop from './screen/SearchShop'; | ||
|
||
const Shops = TabNavigator( |
There was a problem hiding this comment.
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
src/component/CategoryPicker.js
Outdated
renderChoices() { | ||
return ( | ||
<View style={styles.choiceContainer}> | ||
<TouchableOpacity |
There was a problem hiding this comment.
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
src/component/ShopRow.js
Outdated
{this.props.shop.distance && ( | ||
<Text style={styles.distance}> | ||
{this.props.shop.distance >= 1000 | ||
? `${this.props.shop.distance / 1000}km` |
There was a problem hiding this comment.
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
src/screen/NearShops.js
Outdated
return ( | ||
<View style={styles.container}> | ||
<FlatList | ||
data={[ |
There was a problem hiding this comment.
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