A React Native application built with Expo showcasing a Time-Lock Vault using the tech stack provided by @bitcoinerlab.
- Make sure you have Node.js installed.
-
Clone this repository:
git clone https://github.com/bitcoinerlab/VaultShowcase.git cd VaultShowcase
-
Install dependencies:
npm install
-
Start the Expo development server:
npx expo start -c
This will start the Metro Bundler and display a QR code in your terminal.
-
To run the app on your physical device:
- Android: Scan the QR code with the Expo Go app.
- iOS: Use the Camera app to scan the QR code and open it with the Expo Go app.
If you'd like to run the app on a simulator or emulator, follow these additional steps:
For iOS:
- Install Xcode from the Mac App Store.
- Once installed, open Xcode to install the additional required components.
- Ensure you have iOS simulators installed. You can manage and install simulators via Xcode by navigating to
Xcode > Preferences > Components
.
For Android:
-
Install Android Studio.
-
Make sure you have an Android emulator set up. You can set one up via the AVD Manager in Android Studio.
-
To run the app on a simulator/emulator:
- iOS Simulator: Press
i
in the terminal where the Expo server is running. - Android Emulator: Press
a
in the terminal (ensure you have an emulator set up through Android Studio).
- iOS Simulator: Press
In order to be able to use native tcp sockets (for electrum) we need to depart from Expo Go and use local development tools.
Still, it is possible to use expo tools without ejecting completelly.
For that, builds must be done locally, though.
For Macos, install: Ruby: https://rvm.io/rvm/install fastlane (depends on ruby)
read this too in cause of trouble: https://expo.canny.io/feature-requests/p/support-raw-tcp-sockets