RoboJackets / RoboJackets/apiary-react-native
Add dev-only bypass for NFC check useEffect
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently when testing the app on an emulator, developers need to comment out a useEffect hook in RootStack.tsx that checks if NFC is enabled on the device. (Since NFC is not available on the emulator, developers are blocked by an "Insufficient Permissions" screen if they don't comment the useEffect out.)
A dev-only bypass should be implemented to circumvent the check for emulators.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in RootStack.tsx and inspect the useEffect that checks whether NFC is enabled. Add a development-only path that bypasses this check for emulator use while preserving the permission check on supported devices. Done means developers can run the app in an emulator without reaching the "Insufficient Permissions" screen.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100