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

Add example App #206

Merged
merged 21 commits into from
Aug 23, 2024
Merged

Add example App #206

merged 21 commits into from
Aug 23, 2024

Conversation

Kicu
Copy link
Member

@Kicu Kicu commented Aug 23, 2024

Description

This PR adds an example app to help developers who want to work locally on react-native-qrcode-svg.

All of the important code is kept within Example directory. This PR is expected to introduce no changes to the library or api, it just adds useful developer tooling

Screenshot 2024-08-23 at 12 10 50

rec-qrcode.mov

Details

  • Example app built using expo
  • Example app has to be using yarn because when I used npm the local link:... dependency doesn't work; I have not found a better way to link to local library that wouldn't break also

Supported platforms:

  • ios
  • android
  • web
  • macos

Important files:

  • Example/metro.config.js
  • Example/webpack.config.js
  • Example/package.json
  • Example/src/App.tsx
  • Example/README.md

@Kicu Kicu marked this pull request as draft August 23, 2024 10:08
@Kicu Kicu force-pushed the kicu/add-example-app branch from 6deab26 to 66ed7dc Compare August 23, 2024 10:29
@Kicu Kicu marked this pull request as ready for review August 23, 2024 10:29
@Kicu
Copy link
Member Author

Kicu commented Aug 23, 2024

@luacmartins this is the PR that introduces Example app, it's mostly commits moved from our old fork, with some small tweaks so it works and builds correctly.
It's supposed to mimoc this PR: Expensify#2

CC @grgia @awesomejerry (I have no idea if you're still contributing to this or not - feel free to comment if you do)

Copy link
Contributor

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

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

Just some comments. Looks good overall 🚀

"@svgr/webpack": "^8.1.0",
"file-loader": "^6.2.0",
"react": "18.2.0",
"react-native": "^0.73.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to bump the version to newest RN in some follow-ups. But then macos would probably stop working so idk.

@Kicu Kicu force-pushed the kicu/add-example-app branch from d2e5e37 to 1dc3fea Compare August 23, 2024 11:29
@luacmartins luacmartins self-requested a review August 23, 2024 13:36
Copy link
Contributor

@luacmartins luacmartins left a comment

Choose a reason for hiding this comment

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

LGTM

@luacmartins luacmartins merged commit ea0d659 into Expensify:main Aug 23, 2024
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.

4 participants