This is a React Native application built using Expo. This guide will walk you through the steps to set up and run the application on a Windows machine using an Android simulator.
Before you begin, ensure you have the following software installed:
- Node.js: Download and install Node.js.
- Git: Download and install Git.
- Android Studio: Download and install Android Studio. Ensure you install the Android SDK and set up an Android Virtual Device on installation. After opening the Android Studio, from the "More Actions" menu click on the "Virtual Device Manager". In this menu add a phone virtual device such as Pixel 8, Pixel 7 etc..
Press the plus icon on the left:
Choose a phone virtual device you want to install:
For MacOS you can additionally install XCode for running the app in iOS simulator:
- XCode: Download and install XCode. Ensure that in installation you install an iPhone simulator as well.
Follow these steps to set up and run the application:
Open Command Prompt or Terminal and clone the repository using the following command:
git clone https://github.com/makisacik/react-native-crypto-agent.git
Change to the project's root directory:
cd react-native-crypto-agent
Install Expo CLI globally by running the following command:
npm install -g expo-cli
Install the necessary dependencies using npm:
npm install
Start the Metro Bundler, which is the JavaScript bundler for React Native:
npx expo start
Open Android Studio and launch the AVD (Android Virtual Device) you previously set up from the Virtual Device Manager. Ensure the emulator is running.
In the command line tool or in terminal, press "a". This will build the project and launch it in the Android emulator.
In the command line tool or in terminal, press "i". Unlike the Android Emulator you don't need to run the simulator beforehand, it would be opened automatically.
Install the Expo Go application on your Android or iOS phone. Download and install Expo Go. Scan the QR code in your Command Prompt or Terminal with Expo Go (Android) or the Camera app (iOS)