RoboJackets / RoboJackets/apiary-react-native

Add dev-only bypass for NFC check useEffect

Open Beginner friendly
#52 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.