Skip to content

Fix XNT balance display and add toast notifications - #21

Merged
jacklevin74 merged 1 commit into
masterfrom
fix/add-toast-notifications-and-xnt-balance
Nov 17, 2025
Merged

Fix XNT balance display and add toast notifications#21
jacklevin74 merged 1 commit into
masterfrom
fix/add-toast-notifications-and-xnt-balance

Conversation

@stackedPenguin

Copy link
Copy Markdown
Collaborator

Summary

This PR restores the missing XNT balance fix and toast notification features that were not included in PR #20.

Changes

Critical Bug Fixes

  • Enable cleartext HTTP traffic in AndroidManifest.xml to allow API calls to http://162.250.126.66:4000
  • Fix handleSendSubmit to accept parameters from SendScreen for proper validation

UI/UX Improvements

  • Add react-native-toast-message for modern, non-intrusive notifications
  • Replace Alert.alert with Toast.show for better user experience:
    • Send transaction validation errors (invalid amount, invalid address, missing wallet)
    • Clipboard copy confirmations
    • Wallet deletion success messages
    • Swap/Stake/Bridge placeholder info messages

Toast Configuration

  • Custom dark theme matching app design
  • Color-coded left borders (green for success, red for error, blue for info)
  • Bottom positioning with 80px offset for software navigation buttons
  • Dark background (#1a1a1a) with shadow for depth
  • Auto-dismiss without blocking UI

Testing

  • ✅ Built and tested on Android emulator
  • ✅ App bundles successfully (4639ms)
  • ✅ All features working as expected

Why This PR?

PR #20 merged changes from a different branch that only included icons and screen updates, but not the critical XNT balance fix or toast notifications. This PR ensures those important features make it into master.

- Enable cleartext HTTP traffic in AndroidManifest for API access
- Add react-native-toast-message for modern notifications
- Replace Alert.alert with Toast.show for better UX:
  - Send transaction validation errors
  - Clipboard copy confirmations
  - Wallet deletion success
  - Swap/Stake/Bridge placeholder messages
- Update handleSendSubmit to accept parameters from SendScreen
- Custom dark theme toast configuration with:
  - Color-coded borders (green/red/blue)
  - Bottom positioning with 80px offset
  - Dark background matching app theme
@jacklevin74
jacklevin74 merged commit 87a7640 into master Nov 17, 2025
@stackedPenguin
stackedPenguin deleted the fix/add-toast-notifications-and-xnt-balance branch November 17, 2025 19:46
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