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

Create Purchase screen flow #16

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

shadforth
Copy link
Member

@shadforth shadforth commented May 9, 2020

High-level overview

This adds a new Purchase screen available via the business detail page to share a purchase made with that business. Users can include information about the product bought, any comments, and include an image from their phone's camera roll.

Callouts

  • Using Expo's ImagePicker library, expo-image-picker
  • New button on the DetailsScreen not included in this PR
  • Overlapping styles between DetailsScreen and PurchaseScreen will require some refactoring
  • No connection to backend yet (i.e. saving the data), submit button not functional
  • Styles not finalised yet

Screenshot

purchase-flow

@shadforth shadforth marked this pull request as draft May 9, 2020 01:11
@shadforth shadforth changed the title [WIP] Create Purchase screen flow Create Purchase screen flow May 9, 2020
@shadforth shadforth added the enhancement New feature or request label May 9, 2020

useEffect(() => {
const _getPermissionAsync = async () => {
if (Constants.platform.ios) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does android not require file permissions? Do you want me to test on an android emulator?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes please - I took this snippet from the Expo site and haven't tested on Android yet 👼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants