Follow these instructions to set up and run the project on your local machine.
-
Node.js and npm/yarn:
- Install Node.js (which includes npm).
- Install yarn globally (optional):
npm install -g yarn
-
Expo CLI: Install Expo globally for easier React Native development:
npm install -g expo-cli
-
React Native Environment: Ensure you have:
- Expo Go App installed on your phone (optional).
-
Clone the repository:
git clone <repository-url> cd ReactNativeDemo
-
Install dependencies:
npm install
-
Start the Expo development server:
npm start
-
Run the app:
- Mobile Device: Scan the QR code using the Expo Go app.
- Emulator: Select an emulator (iOS or Android) from the Expo Developer Tools in your browser.
ReactNativeDemo/
├── App.js # Main application file
├── package.json # Project metadata and dependencies
├── node_modules/ # Installed dependencies
└── assets/ # Static assets (images, fonts, etc.)