-
Notifications
You must be signed in to change notification settings - Fork 4
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
Updated How It Works #147
Merged
Merged
Updated How It Works #147
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cf88866
Center Location bugfix"
kennethlien 41edb2a
Merge branch 'master' of https://github.com/calblueprint/dccentralkit…
kennethlien 5ab8c0f
Merge branch 'master' of https://github.com/calblueprint/dccentralkit…
kennethlien 6a62b4a
reworked how it works, still have to put scrolling tabview
kennethlien ef38969
made it scroll
kennethlien bc0bbab
added slight margins
kennethlien 3502bdc
changed values to use constants
kennethlien 9c131a8
Cleaned up some \n
wangannie f67fbb9
Fixed left margin
wangannie f7e9f3a
Merge branch 'master' of https://github.com/calblueprint/dccentralkit…
wangannie 9f298fa
Fixed up margins again + cleanup
wangannie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react'; | ||
import { Image, ScrollView, View } from 'react-native'; | ||
import { rewardDollarValue, rewardPointValue } from '../../constants/Rewards'; | ||
import { BigTitle, Title } from '../BaseComponents'; | ||
|
||
/** | ||
* @prop | ||
* */ | ||
|
||
function HowItWorks() { | ||
return ( | ||
<ScrollView style={{ display: 'flex', marginLeft: 16, paddingRight: 16 }}> | ||
<View style={{ display: 'flex', alignItems: 'center', maxHeight: 1750 }}> | ||
<Image | ||
source={require('../../assets/images/1Shop.png')} | ||
style={{ | ||
maxWidth: '100%', | ||
resizeMode: 'contain', | ||
maxHeight: 400, | ||
}} | ||
/> | ||
<BigTitle>Shop</BigTitle> | ||
<Title style={{ textAlign: 'center' }}> | ||
Buy Healthy Corners products at participating stores! | ||
</Title> | ||
|
||
<Image | ||
source={require('../../assets/images/2Earn.png')} | ||
style={{ | ||
maxWidth: '100%', | ||
resizeMode: 'contain', | ||
maxHeight: 400, | ||
}} | ||
/> | ||
<BigTitle>Earn</BigTitle> | ||
<Title style={{ textAlign: 'center' }}> | ||
{`Every dollar you spend on healthy products earns you points!\n $1 = 100 points`} | ||
</Title> | ||
|
||
<Image | ||
source={require('../../assets/images/3Save.png')} | ||
style={{ | ||
maxWidth: '100%', | ||
resizeMode: 'contain', | ||
maxHeight: 400, | ||
}} | ||
/> | ||
<BigTitle>Save</BigTitle> | ||
<Title style={{ textAlign: 'center' }}> | ||
{`Every ${rewardPointValue} points you earn unlocks a $${rewardDollarValue} reward!\n\nRedeem on Healthy Corners products at participating stores!`} | ||
</Title> | ||
</View> | ||
</ScrollView> | ||
); | ||
} | ||
|
||
export default React.memo(HowItWorks); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { FontAwesome5 } from '@expo/vector-icons'; | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import { FlatList, Image, ScrollView, View } from 'react-native'; | ||
import { FlatList, ScrollView, View } from 'react-native'; | ||
import { ProgressBar } from 'react-native-paper'; | ||
|
||
import Colors from '../../constants/Colors'; | ||
import Window from '../../constants/Layout'; | ||
import { rewardDollarValue, rewardPointValue } from '../../constants/Rewards'; | ||
|
@@ -89,17 +88,7 @@ function RewardsHome({ customer, participating }) { | |
} | ||
/> | ||
</AvailableRewardsContainer> | ||
<ParticipatingStores participating={participating} guest={false} /> | ||
<View style={{ maxHeight: 600, marginTop: 12 }}> | ||
<Image | ||
source={require('../../assets/images/HowItWorks.png')} | ||
style={{ | ||
maxWidth: '100%', | ||
resizeMode: 'contain', | ||
maxHeight: 600, | ||
}} | ||
/> | ||
</View> | ||
<ParticipatingStores participating={participating} guest /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait this should not include |
||
</ScrollView> | ||
); | ||
} | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These empty style brackets??