A blockchain wallet demonstration application developed with Expo and React Native, supporting cryptocurrency asset display, currency unit switching, and more.
- 🔒 Support for multiple cryptocurrency assets (BTC, ETH, DOGE, etc.)
- 💱 Currency unit switching (USD / HKD)
- 📊 Automatic asset value formatting (K/M/B)
- 🔗 Integrated native settings module
- 📱 Optimized mobile UI design
- Node.js 18+
- Xcode 14+ (for iOS development)
- Android Studio (for Android development)
- npm or yarn
-
Clone the project to your local machine
git clone https://github.com/LuluCat1120/OnchainWalletDemo.git cd OnchainWalletDemoExpo -
Install dependencies
npm install
-
Launch the application
# Normal startup npm run ios # If you encounter network issues, use the following command to clean cache and restart sh cleanAndStart.sh
If you encounter "fetch failed" or loading issues, try:
-
Clean the cache
# Clean cache rm -rf node_modules/.cache watchman watch-del-all -
Use the provided script for one-click cleaning and startup
sh cleanAndStart.sh
app/ # Main application code
├── (tabs) # Bottom tabs
│ ├── assets.tsx # Assets page
│ └── ...
├── settings.tsx # Settings page
hooks/ # React hooks
├── useCurrencyContext.tsx # Currency context
├── useWalletSettingsModule.tsx # Wallet settings module
ios/ # iOS native code
├── SettingsModule # Native settings module
utils/ # Utility functions
├── CurrencyParser.ts # Currency formatting utilities
Pull Requests and Issues are welcome to help improve this project!