Noah is a modern, self-custodial mobile wallet for Ark, a Bitcoin Layer 2 protocol. It is built with React Native and Expo.
- ✨ Core Technologies
- 🚀 Getting Started
- ⚡️ Local Ark Regtest Environment
- 🏃 Running the Application
- 📦 Building for Production
- 📜 License
- Framework: React Native & Expo
- Runtime & Package Manager: Bun
- Language: TypeScript
- Styling: NativeWind (Tailwind CSS for React Native)
- State Management: Zustand
- Navigation: React Navigation
- Data Fetching: TanStack Query
- Local Storage: MMKV
- Native Modules: Nitro (Ark)
- Development Environment: Nix
You can set up the development environment using Nix (recommended) or by manually installing the dependencies.
This project uses Nix to provide a reproducible development environment. While most dependencies are managed by Nix, you will still need to install a few tools manually.
Prerequisites:
- Install Nix: Follow the official installation guide.
- Install direnv: This tool will automatically load the Nix environment when you enter the project directory. Follow the direnv installation guide.
- Hook direnv into your shell: Make sure to follow the instructions to hook direnv into your shell (e.g., add
eval "$(direnv hook zsh)"
to your.zshrc
). - Install IDEs and SDKs:
- Android: Install Android Studio.
- iOS (macOS only): Install Xcode from the Mac App Store.
Setup:
-
Clone the Repository
git clone https://github.com/BlixtWallet/noah.git cd noah
-
Allow direnv to load the environment This command will trigger Nix to build the development shell. It might take a while on the first run.
direnv allow
-
Install JavaScript Dependencies Once the Nix shell is active, you can install the project's dependencies using Bun.
bun install
-
Install iOS Dependencies (for macOS users) This step links the native iOS libraries.
bun ios:prebuild
Now the project is ready to run.
If you prefer not to use Nix, you can set up your environment manually. This project is a bare Expo project.
For a comprehensive guide on setting up your machine for bare Expo development, please refer to the Expo documentation. This includes installing Node.js, Watchman, the Java Development Kit, Android Studio, and Xcode.
Once your environment is set up, follow these steps:
-
Clone the Repository
git clone https://github.com/BlixtWallet/noah.git cd noah
-
Install JavaScript Dependencies
bun install
-
Install iOS Dependencies (for macOS users)
bun ios:prebuild
For development and testing, you can run a local Ark stack (bitcoind, aspd, bark) using Docker. The scripts/ark-dev.sh
script helps manage this environment.
Prerequisites:
- Docker: Install Docker Desktop.
Setup & Usage:
-
Bootstrap the environment This clones the
bark
repository and prepares the Docker setup../scripts/ark-dev.sh setup
-
Start the services This will start
bitcoind
,aspd
, andbark
in the background../scripts/ark-dev.sh up
-
Create and fund wallets
- Create a Bitcoin Core wallet:
./scripts/ark-dev.sh create-wallet
- Generate blocks to fund it:
./scripts/ark-dev.sh generate 101
- Create a bark wallet:
./scripts/ark-dev.sh create-bark-wallet
- Fund the ASPD:
./scripts/ark-dev.sh fund-aspd 1
- Create a Bitcoin Core wallet:
-
Stop the services
# Stop services ./scripts/ark-dev.sh stop # Stop and delete volumes ./scripts/ark-dev.sh down
For more commands and details, run ./scripts/ark-dev.sh
without arguments.
This project uses various scripts to run the application in different environments (Mainnet, Signet, Regtest).
Please see the scripts
section in the package.json
file for a full list of available commands.
Example (running on Android Regtest):
bun run android:regtest:debug
Example (running on iOS Regtest):
bun run ios:regtest:debug
You can create production-ready application binaries using the build scripts.
Please see the scripts
section in the package.json
file for commands starting with build:
.
Note on Code Signing: For production builds, you will need to configure your own signing keys. Refer to the official React Native and Expo documentation for code signing on Android and iOS.
This project is licensed under the MIT License.