I am experimenting with React Native: getting familiar with development and getting apps online.
The project is using Expo Go for development and internal distribution.
Last updated Feb 3, 2024.
- we use cloudinary for some of our imagery;
-
Clone the Repository:
- Clone this repository to your local machine using:
git clone https://github.com/industriousparadigm/explore-react-native.git
- Clone this repository to your local machine using:
-
Install Dependencies:
- Navigate to the project directory and install the necessary dependencies:
cd explore-react-native npm install
- Navigate to the project directory and install the necessary dependencies:
-
Start the Expo Development Server:
- Run the following command to start the Expo development server:
expo start
- This will open up a new tab in your default web browser with the Expo developer tools.
- Run the following command to start the Expo development server:
-
Run on a Simulator/Emulator:
- Ensure you have Xcode (for iOS) or Android Studio (for Android) set up.
- In the Expo developer tools in your browser, click on "Run on iOS simulator" or "Run on Android emulator".
-
View Logs and Debug:
- The Expo developer tools in the browser allow you to view logs, debug, and access various developer options.
To run the app on your iPhone, follow these steps:
-
Install Expo Go App
-
Start the Expo Development Server:
- See the steps in "Run Locally" above.
-
Connect to the Same Wi-Fi Network:
- Make sure your development machine and iPhone are on the same Wi-Fi network.
-
Scan QR Code with Expo Go:
- Open the Expo Go app on your iPhone.
- Scan the QR code available in the Expo developer tools in your browser or in the terminal where you ran
expo start
. - This will open your project in the Expo Go app.
-
Development and Testing:
- You can now develop and test your app. Any changes you make will be reflected in the app running in Expo Go.
- If you encounter issues, ensure you have the latest version of Expo CLI installed and that your project's dependencies are up to date.
- For issues specific to running on an iPhone, check that your phone's Expo Go app is updated.
Happy coding!