This guide will help you set up your development environment for Freighter Mobile.
-
Node.js & Yarn:
- Install Node.js (LTS version recommended). You can download it from nodejs.org.
- Yarn is the recommended package manager. Install it via npm (which comes
with Node.js):
npm install --global yarn
-
Watchman (macOS only):
- Watchman is a tool by Facebook for watching changes in the filesystem. It
is highly recommended for performance.
brew install watchman
- Watchman is a tool by Facebook for watching changes in the filesystem. It
is highly recommended for performance.
-
React Native CLI:
- Install the React Native command line interface:
npm install --global react-native-cli
- Alternatively, you might prefer to use
npx react-native <command>
for running commands without a global installation.
- Install the React Native command line interface:
Follow the official React Native documentation for setting up your environment for iOS and Android development. This includes installing Xcode (for iOS) and Android Studio (for Android), along with their respective SDKs and command-line tools.
- Go to the React Native development environment setup page.
- Select "React Native CLI Quickstart".
- Follow the instructions for your development OS (macOS, Windows, Linux) and target OS (iOS, Android).
-
Clone the Repository:
git clone https://github.com/stellar/freighter-mobile.git cd freighter-mobile
-
Install Dependencies:
yarn install
Important
See package.json for other useful scripts like more specific clean/install commands.
Run on Android:
- In a new terminal window, navigate to the project root and run:
yarn android
Run on iOS (macOS only):
- In a new terminal window, navigate to the project root and run:
yarn ios
Important
- in both cases it should prompt you to open a new terminal tab to run Metro bundler and that tab should be kept open while runing the app.
- if you don't have a emulator open it will try to open the first one available
This should get you up and running with the Freighter Mobile app in your development environment. If you encounter any issues, please refer to the React Native documentation or open an issue in the repository.