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

feat: qr code scanner #1

Merged
merged 15 commits into from
Nov 13, 2024
Merged

feat: qr code scanner #1

merged 15 commits into from
Nov 13, 2024

Conversation

adityapawar1
Copy link
Contributor

@adityapawar1 adityapawar1 commented Oct 5, 2024

What's new in this PR

Description

Adding a page for QR code scanning with expo-camera. After scanning a QR code, it takes you to the placeholder Tree Info Page where it shows you the "id" of the tree you just scanned.
Also added some boilerplate for react-navigation to pass params like the tree id between pages.

Screenshots

QR Code Scanner:
Screenshot 2024-11-06 at 6 36 24 PM

How to review

Use a QR Code generator (like this) and add a tree id as the value. Scan the QR code and see if it gets the correct data from the QR code, and navigates you to the tree info page.

Next steps

Make everything look pretty!

Relevant links

Online sources

https://docs.expo.dev/versions/latest/sdk/camera/
https://reactnavigation.org/docs/typescript/#type-checking-screens

Related PRs

None

CC: @christophertorres1

@AlexWang05
Copy link
Member

LGTM 👍

Copy link
Collaborator

@christophertorres1 christophertorres1 left a comment

Choose a reason for hiding this comment

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

Amazing work!

Just some minor changes to maintain consistency in the project's file structure, and remove extra comments except for function descriptions.

Thanks Adi!!

src/types.ts Outdated Show resolved Hide resolved
src/components/TreeInfoPage/TreeInfoPage.tsx Outdated Show resolved Hide resolved
src/app/index.tsx Outdated Show resolved Hide resolved
src/types.ts Outdated Show resolved Hide resolved
@christophertorres1 christophertorres1 changed the title Add QR Code Scanner feat: qr code scanner Nov 4, 2024
@adityapawar1
Copy link
Contributor Author

should be ready for review @christophertorres1

@christophertorres1 christophertorres1 merged commit 2f2f8a3 into main Nov 13, 2024
2 checks passed
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.

3 participants