Lab 4 MAD
Lab 4 MAD
Activity Outcomes:
The activities provide hands - on practice with the following topics
pplication
Activity 1:
Create an Expo cli app named “AwesomeProject”.
Solution:
Install Node v12 or greater
Run the command ( npm install -g expo-cli )
Followed by these commands,
expo init AwesomeProject
cd AwesomeProject
npm start # you can also use: expo start
Output
First Expo Application created successfully.
Activity 2:
Create a React Native cli application named “AwesomeProject”.
ent variables
Output
theStealthWarrior
Lab Task 1
Create an account on Snack and create the first expo cli application on it. Rename the application
as “FirstExpoApplication”. Run the application on built-in android and IOS emulators. Also,
scan the QR code and run the application on actual device (android/IOs). Lastly, remove the
unnecessary code from snack and application should only have two react native components
having view and text, having “Hello world” as output.
Solution:
Go to Snack.
Click on Sign In in the top right corner.
Sign in using your GitHub, Google, or create a new account with your email.
After signing in, click on Create New Snack to start your first project.
Rename the application to "FirstExpoApplication" by clicking on the project name at
the top.
In the Snack editor, you'll see built-in iOS and Android simulators.
Click on "Device" on the right sidebar and choose iOS or Android.
The app will compile and run automatically in the simulators.
4. Run on Actual Device (Android/iOS)
Go back to the Snack editor, and clean up the default code. Here's the minimal version of
the app with two components:
Lab Task 2
Create a React Native Cli application after following the instructions from here
https://reactnative.dev/docs/set-up-your-environment Run the application on your android/IOs
environment.
Tool for coding: VS Code
(https://code.visualstudio.com/download)
LAB ASSIGNMENT # 02
Deadline Next LAB