feat(rn_cli_wallet): add NFC tap-to-pay support for iOS and Android#421
feat(rn_cli_wallet): add NFC tap-to-pay support for iOS and Android#421ignaciosantise wants to merge 1 commit intomainfrom
Conversation
Add NFC reader integration with foreground dispatch on Android for seamless tag detection while app is visible. iOS uses native CoreNFC with universal links. Add NFC button to header on iOS, Android App Links configuration, and iOS App Site Association for deep linking from NFC tags. - Add react-native-nfc-manager dependency - Implement useNfc hook with foreground dispatch for Android - Add NFC icon (NfcTap.tsx) with customizable fill color - Add NFC button to Header on iOS (hidden on Android due to foreground dispatch) - Update Android manifest with NFC permissions, app links, and autoVerify - Update iOS entitlements with NDEF reading and universal links - Bump Android versionCode to 60 - Add logging for debugging NFC scan events Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ignaciosantise's task in 1m 4s —— View job Code Review
Found 4 issue(s)Issue 1:
|
There was a problem hiding this comment.
Pull request overview
Adds NFC tap-to-pay support to rn_cli_wallet, wiring NFC tag scans into the existing URI/payment-link handling flow and updating mobile platform configuration for NFC and app/universal links.
Changes:
- Add
react-native-nfc-managerand implement NFC scanning + Android foreground tag interception. - Route NFC/app-link payment URLs through the centralized
handleUriOrPaymentLinkhandler. - Update iOS entitlements and Android manifest/versionCode to support NFC + pay.walletconnect.com link handling.
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| wallets/rn_cli_wallet/package.json | Adds react-native-nfc-manager dependency. |
| wallets/rn_cli_wallet/yarn.lock | Locks react-native-nfc-manager resolution. |
| wallets/rn_cli_wallet/ios/Podfile.lock | Adds CocoaPods entry for react-native-nfc-manager. |
| wallets/rn_cli_wallet/src/hooks/useNfc.ts | Introduces NFC scan hook + Android foreground dispatch listener. |
| wallets/rn_cli_wallet/src/screens/App.tsx | Registers Android foreground dispatch and adds pay link handling in deep-link handler. |
| wallets/rn_cli_wallet/src/components/Header.tsx | Adds iOS “Tap” NFC button to trigger manual scan. |
| wallets/rn_cli_wallet/src/assets/NfcTap.tsx | Adds NFC icon asset component. |
| wallets/rn_cli_wallet/ios/RNWeb3Wallet/RNWeb3Wallet.entitlements | Adds associated domains + NFC session formats. |
| wallets/rn_cli_wallet/ios/RNWeb3Wallet/RNWeb3WalletDebug.entitlements | Same as above for Debug. |
| wallets/rn_cli_wallet/android/app/src/main/AndroidManifest.xml | Adds NFC feature flag and NDEF intent-filter for pay wallet domains. |
| wallets/rn_cli_wallet/android/app/build.gradle | Bumps Android versionCode. |
| wallets/rn_cli_wallet/ios/RNWeb3Wallet.xcodeproj/xcshareddata/xcschemes/RNWallet.xcscheme | Scheme version change. |
| wallets/rn_cli_wallet/ios/RNWeb3Wallet.xcodeproj/project.pbxproj | Xcode project metadata updates related to build phases/provisioning. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
wallets/rn_cli_wallet/ios/RNWeb3Wallet.xcodeproj/xcshareddata/xcschemes/RNWallet.xcscheme
Show resolved
Hide resolved
|
All 4 issues from the Claude review have been addressed:
|
Summary
Add NFC reader integration with automatic tag detection on Android via foreground dispatch, and iOS native CoreNFC support with universal links. Enables seamless tap-to-pay UX for both platforms.
Changes
Test Plan
🤖 Generated with Claude Code