SlideShare a Scribd company logo
5
Most read
17
Most read
20
Most read
Lecture 1
Introduction to
React Native
PR EPAR ED BY: GEVITA
Course Overview:
∙ This course is designed to provide students with an introduction to React
Native, a popular framework for building mobile applications for both iOS and
Android platforms. Students will learn how to build, test, and deploy mobile
applications using React Native, as well as how to use popular libraries.
Pre-requisites
∙ Basic knowledge of JavaScript
∙ Familiarity with React
What is React Native?
∙ React Native is an open-source framework for building Android and iOS
applications.
∙ React Native is a library built with the same API as React. It uses the same
declarative UI paradigm but renders directly to native components. You can
write your app once in React and run it on multiple native platforms, like
Android and iOS.
∙ While “native” is part of the name, it’s not pure native app development: Expo
and React Native still use JavaScript to run your app. Instead of rendering
this JavaScript with a web engine, they use the actual native components
from the platform.
Expo and React Native
∙ Expo is a platform to make universal React apps that helps you develop,
build, deploy, and quickly iterate on mobile apps. It provides a range of
tooling to make development with React Native even easier.
∙ Although Expo isn’t required to create React Native apps, it helps
developers by removing the need for basic native knowledge.
Expo Collections
•Expo Go is an app you can download on your phone to “view” your app in development.
•Expo CLI is a tool to create, manage, and develop your apps.
•Expo SDK is a modular set of packages that provide access to native APIs, like Camera
or Notifications.
•Expo Snack is a web-based playground where you can write React Native snippets and
run them in the browser
React vs React Native vs Native
Core Components
∙ In Expo and React Native, components are translated to native components
for the platform it’s running on. To help you get started, React Native
provides a set of ready-to-use components for your app. These components
are called “core components” and most of them have built-in Android and
iOS implementations.
Native code
∙ “Native code” are instructions for how to operate the React Native framework
on each platform, such as iOS and Android.
React.js React native
1. A javaScript Library for building UI Collection of “special” React
components
2. Doesn’t care about the underlying
platform
Target to IoS and Android
React.js + React native  Real Native Mobile
Apps
Entry Point
∙ In React Native, the entry point is the main JavaScript file that is responsible for initializing the
application. The entry point typically has a specific file name, such as index.js or App.js, and it is
the first file that is executed when the application is launched.
∙ The entry point is responsible for rendering the root component of the application, which is
typically the App component. This component is responsible for rendering the entire application's
UI and handling the application's lifecycle events.
∙ In addition to initializing the application, the entry point is also responsible for setting up any
required configuration or libraries that the application needs to run. This includes things like
setting up Redux, setting up a navigation library, or configuring any other dependencies that the
application requires.
∙ Overall, the entry point is a critical part of a React Native application, as it sets the foundation for
the entire application's structure and behavior.
React Fundamentals
∙ React Native runs on React, a popular open-source library for building user
interfaces with JavaScript. To make the most of React Native, it helps to
understand React itself. This section can get you started or can serve as a
refresher course.
Sample code of a React Native
first use JavaScript’s import to import React and React
Native’s Text Core Component
You can think of components as blueprints. Whatever a function component returns is rendered as a
React element. React elements let you describe what you want to see on the screen.
Here the Cat component will render a
<Text> element:
You can export your function component with JavaScript’s
export default for use throughout your app like so:
JSX
∙ JSX is a syntax extension for JavaScript that allows you to write HTML-like
code in your JavaScript files. It is commonly used in React to define the
structure and appearance of components.
Props
∙ Props is short for “properties”. Props let you customize React components.
For example, here you pass each <Cat> a different name for Cat to render:
Image component
State
While you can think of props as arguments
you use to configure how components render,
state is like a component’s personal data
storage. State is useful for handling data that
changes over time or that comes from user
interaction. State gives your components
memory!
After
buttons are
pressed
Setting up the development
environment
∙ Download Node.js
∙ Download ExpoGo (iOS or Android)
∙ Download Visual Studio Code
∙ 1. Select folder
∙ 2. Check node.js version  node -v
∙ 3. Check the node package manager  npm -v
∙ 4. npm install -g expo-cli// add sudo if you’re MacOS]
∙ 5. npx create-expo-app HelloApp
when appear >npm install (Wait to install, if long time no respond, try press enter 1 time)
∙ 6. cd HelloApp (go to the HelloApp Directory)
∙ 7. npx expo start
∙ 8. Make sure connect mobile phone with your PC the same Wifi -- if fail, CTRL+C, go back to step 5
∙ 9. iOS (Scan QR code through camera), Android (Scan using Expo Go App scanner)
(will create a project folder)
Sample QR code generated
from the Visual Studio Code
Terminal
Installation for web view
∙ npx expo install react-native-web@~0.18.10 react-dom@18.2.0 @expo/webpack-
config@^18.0.1
∙ (Press w will open you a web view)
Lecture 1 Introduction to React Native.pptx

More Related Content

What's hot (20)

PDF
Suite Script 2.0 API Basics
Jimmy Butare
 
PDF
Node js (runtime environment + js library) platform
Sreenivas Kappala
 
PPT
Ios development
Shakil Ahmed
 
PPTX
How native is React Native? | React Native vs Native App Development
Devathon
 
PPTX
Object Oriented Programming In JavaScript
Forziatech
 
PPT
presentation on Docker
Virendra Ruhela
 
PDF
Docker & kubernetes
NexThoughts Technologies
 
PPTX
Angular interview questions
Goa App
 
PDF
Nodejs vatsal shah
Vatsal N Shah
 
PDF
Synopsis on android application
Jawed akhtar
 
PDF
Giới thiệu docker và ứng dụng trong ci-cd
GMO-Z.com Vietnam Lab Center
 
PPTX
Introduction to node.js
Dinesh U
 
PDF
Apache Kafka Architecture & Fundamentals Explained
confluent
 
PPTX
React Native
ASIMYILDIZ
 
PDF
What Is Hadoop | Hadoop Tutorial For Beginners | Edureka
Edureka!
 
PPTX
Android application development ppt
Gautam Kumar
 
PPTX
Solid principles
Monica Rodrigues
 
PPTX
Spark architecture
GauravBiswas9
 
PDF
Intro to react native
ModusJesus
 
PDF
Hadoop Tutorial | Big Data Hadoop Tutorial For Beginners | Hadoop Certificati...
Edureka!
 
Suite Script 2.0 API Basics
Jimmy Butare
 
Node js (runtime environment + js library) platform
Sreenivas Kappala
 
Ios development
Shakil Ahmed
 
How native is React Native? | React Native vs Native App Development
Devathon
 
Object Oriented Programming In JavaScript
Forziatech
 
presentation on Docker
Virendra Ruhela
 
Docker & kubernetes
NexThoughts Technologies
 
Angular interview questions
Goa App
 
Nodejs vatsal shah
Vatsal N Shah
 
Synopsis on android application
Jawed akhtar
 
Giới thiệu docker và ứng dụng trong ci-cd
GMO-Z.com Vietnam Lab Center
 
Introduction to node.js
Dinesh U
 
Apache Kafka Architecture & Fundamentals Explained
confluent
 
React Native
ASIMYILDIZ
 
What Is Hadoop | Hadoop Tutorial For Beginners | Edureka
Edureka!
 
Android application development ppt
Gautam Kumar
 
Solid principles
Monica Rodrigues
 
Spark architecture
GauravBiswas9
 
Intro to react native
ModusJesus
 
Hadoop Tutorial | Big Data Hadoop Tutorial For Beginners | Hadoop Certificati...
Edureka!
 

Similar to Lecture 1 Introduction to React Native.pptx (20)

PPTX
React native
Vikrant Negi
 
PDF
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
PPTX
Getting Started With React Native Presntation
Knoldus Inc.
 
PDF
React Native +Redux + ES6 (Updated)
Chiew Carol
 
PDF
Reactjs Vs React Native – Key Difference, Advantages, And Disadvantages
Andolasoft Inc
 
PPTX
React Native And Its Ecosystem Presentation
Raduelico
 
PPTX
React Native App Development Company in USA and India
Shelly Megan
 
PPTX
React native
Jacob Nelson
 
PDF
What Is React Native? Guide to Mobile App Development
GrapesTech Solutions
 
PDF
How To Integrate Native Android App With React Native.
Techugo
 
PDF
React Native App Development in 2023-Tips to Practice.pdf
Techugo
 
PDF
React native
NexThoughts Technologies
 
PPTX
How create react app help in creating a new react applications
Concetto Labs
 
PDF
How React Native Works for iOS App Development
Shiv Technolabs Pvt. Ltd.
 
PPTX
20180518 QNAP Seminar - Introduction to React Native
Eric Deng
 
PDF
Most Useful React Native components for Software development (1).pdf
Moon Technolabs Pvt. Ltd.
 
PPTX
Codename one
Software Infrastructure
 
PDF
learning react
Eueung Mulyana
 
PPTX
Mobile Application and Developments.pptx
GevitaChinnaiah
 
PDF
Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...
DicodingEvent
 
React native
Vikrant Negi
 
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
Getting Started With React Native Presntation
Knoldus Inc.
 
React Native +Redux + ES6 (Updated)
Chiew Carol
 
Reactjs Vs React Native – Key Difference, Advantages, And Disadvantages
Andolasoft Inc
 
React Native And Its Ecosystem Presentation
Raduelico
 
React Native App Development Company in USA and India
Shelly Megan
 
React native
Jacob Nelson
 
What Is React Native? Guide to Mobile App Development
GrapesTech Solutions
 
How To Integrate Native Android App With React Native.
Techugo
 
React Native App Development in 2023-Tips to Practice.pdf
Techugo
 
How create react app help in creating a new react applications
Concetto Labs
 
How React Native Works for iOS App Development
Shiv Technolabs Pvt. Ltd.
 
20180518 QNAP Seminar - Introduction to React Native
Eric Deng
 
Most Useful React Native components for Software development (1).pdf
Moon Technolabs Pvt. Ltd.
 
learning react
Eueung Mulyana
 
Mobile Application and Developments.pptx
GevitaChinnaiah
 
Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...
DicodingEvent
 
Ad

More from GevitaChinnaiah (20)

PPTX
White Box Testing on a Python Function.pptx
GevitaChinnaiah
 
PPTX
Building a To-Do List App lecture 1.pptx
GevitaChinnaiah
 
PPTX
Software Quality and Testing note 1.pptx
GevitaChinnaiah
 
PPTX
Introduction to JavaScript DOM and User Input.pptx
GevitaChinnaiah
 
PPT
391Lecture0909 Vision control of git.ppt
GevitaChinnaiah
 
PPTX
Introduction to Python and Basic Syntax.pptx
GevitaChinnaiah
 
PPTX
Software Programming with Python II.pptx
GevitaChinnaiah
 
PPT
a basic java programming and data type.ppt
GevitaChinnaiah
 
PPTX
Install an Operating System.pptx
GevitaChinnaiah
 
PPTX
Solve Stop Code Memory Management on Windows.pptx
GevitaChinnaiah
 
PPTX
windows memory management.pptx
GevitaChinnaiah
 
PPTX
Introduction to Database Management.pptx
GevitaChinnaiah
 
PPT
OPERATING SYSTEM CHAPTER 3.ppt
GevitaChinnaiah
 
PPTX
Lecture 3 React Native with Database.pptx
GevitaChinnaiah
 
PPTX
Database Management System (DBMS).pptx
GevitaChinnaiah
 
PPTX
Operating System chapter 1.pptx
GevitaChinnaiah
 
PPTX
Lecture 2 Styling and Layout in React Native.pptx
GevitaChinnaiah
 
PPTX
Understanding Applications.pptx
GevitaChinnaiah
 
PPTX
Operating System 2.pptx
GevitaChinnaiah
 
PPTX
Operating System 1.pptx
GevitaChinnaiah
 
White Box Testing on a Python Function.pptx
GevitaChinnaiah
 
Building a To-Do List App lecture 1.pptx
GevitaChinnaiah
 
Software Quality and Testing note 1.pptx
GevitaChinnaiah
 
Introduction to JavaScript DOM and User Input.pptx
GevitaChinnaiah
 
391Lecture0909 Vision control of git.ppt
GevitaChinnaiah
 
Introduction to Python and Basic Syntax.pptx
GevitaChinnaiah
 
Software Programming with Python II.pptx
GevitaChinnaiah
 
a basic java programming and data type.ppt
GevitaChinnaiah
 
Install an Operating System.pptx
GevitaChinnaiah
 
Solve Stop Code Memory Management on Windows.pptx
GevitaChinnaiah
 
windows memory management.pptx
GevitaChinnaiah
 
Introduction to Database Management.pptx
GevitaChinnaiah
 
OPERATING SYSTEM CHAPTER 3.ppt
GevitaChinnaiah
 
Lecture 3 React Native with Database.pptx
GevitaChinnaiah
 
Database Management System (DBMS).pptx
GevitaChinnaiah
 
Operating System chapter 1.pptx
GevitaChinnaiah
 
Lecture 2 Styling and Layout in React Native.pptx
GevitaChinnaiah
 
Understanding Applications.pptx
GevitaChinnaiah
 
Operating System 2.pptx
GevitaChinnaiah
 
Operating System 1.pptx
GevitaChinnaiah
 
Ad

Recently uploaded (8)

PPT
lect 1 Introduction.ppt11112222333344455
212231
 
PDF
💡 Digital Marketing Decoded: Mastering Online Growth Strategies for 2025 🚀
marketingaura24
 
PDF
Building Smart, Scalable Solutions with Android App Development
Brancosoft Private Limited
 
PPTX
The Intersection of Emoji and NFT. What can be the Consequences?
Refit Global
 
PDF
Call For Papers - International Journal on Natural Language Computing (IJNLC)
kevig
 
PPT
lec2 wireless transmission exlaining.ppt
212231
 
PPTX
Mobile Apps Helping Business Grow in 2025
Infylo Techsolutions
 
PDF
INTERLINGUAL SYNTACTIC PARSING: AN OPTIMIZED HEAD-DRIVEN PARSING FOR ENGLISH ...
kevig
 
lect 1 Introduction.ppt11112222333344455
212231
 
💡 Digital Marketing Decoded: Mastering Online Growth Strategies for 2025 🚀
marketingaura24
 
Building Smart, Scalable Solutions with Android App Development
Brancosoft Private Limited
 
The Intersection of Emoji and NFT. What can be the Consequences?
Refit Global
 
Call For Papers - International Journal on Natural Language Computing (IJNLC)
kevig
 
lec2 wireless transmission exlaining.ppt
212231
 
Mobile Apps Helping Business Grow in 2025
Infylo Techsolutions
 
INTERLINGUAL SYNTACTIC PARSING: AN OPTIMIZED HEAD-DRIVEN PARSING FOR ENGLISH ...
kevig
 

Lecture 1 Introduction to React Native.pptx

  • 1. Lecture 1 Introduction to React Native PR EPAR ED BY: GEVITA
  • 2. Course Overview: ∙ This course is designed to provide students with an introduction to React Native, a popular framework for building mobile applications for both iOS and Android platforms. Students will learn how to build, test, and deploy mobile applications using React Native, as well as how to use popular libraries.
  • 3. Pre-requisites ∙ Basic knowledge of JavaScript ∙ Familiarity with React
  • 4. What is React Native? ∙ React Native is an open-source framework for building Android and iOS applications. ∙ React Native is a library built with the same API as React. It uses the same declarative UI paradigm but renders directly to native components. You can write your app once in React and run it on multiple native platforms, like Android and iOS. ∙ While “native” is part of the name, it’s not pure native app development: Expo and React Native still use JavaScript to run your app. Instead of rendering this JavaScript with a web engine, they use the actual native components from the platform.
  • 5. Expo and React Native ∙ Expo is a platform to make universal React apps that helps you develop, build, deploy, and quickly iterate on mobile apps. It provides a range of tooling to make development with React Native even easier. ∙ Although Expo isn’t required to create React Native apps, it helps developers by removing the need for basic native knowledge.
  • 6. Expo Collections •Expo Go is an app you can download on your phone to “view” your app in development. •Expo CLI is a tool to create, manage, and develop your apps. •Expo SDK is a modular set of packages that provide access to native APIs, like Camera or Notifications. •Expo Snack is a web-based playground where you can write React Native snippets and run them in the browser
  • 7. React vs React Native vs Native
  • 8. Core Components ∙ In Expo and React Native, components are translated to native components for the platform it’s running on. To help you get started, React Native provides a set of ready-to-use components for your app. These components are called “core components” and most of them have built-in Android and iOS implementations.
  • 9. Native code ∙ “Native code” are instructions for how to operate the React Native framework on each platform, such as iOS and Android. React.js React native 1. A javaScript Library for building UI Collection of “special” React components 2. Doesn’t care about the underlying platform Target to IoS and Android React.js + React native  Real Native Mobile Apps
  • 10. Entry Point ∙ In React Native, the entry point is the main JavaScript file that is responsible for initializing the application. The entry point typically has a specific file name, such as index.js or App.js, and it is the first file that is executed when the application is launched. ∙ The entry point is responsible for rendering the root component of the application, which is typically the App component. This component is responsible for rendering the entire application's UI and handling the application's lifecycle events. ∙ In addition to initializing the application, the entry point is also responsible for setting up any required configuration or libraries that the application needs to run. This includes things like setting up Redux, setting up a navigation library, or configuring any other dependencies that the application requires. ∙ Overall, the entry point is a critical part of a React Native application, as it sets the foundation for the entire application's structure and behavior.
  • 11. React Fundamentals ∙ React Native runs on React, a popular open-source library for building user interfaces with JavaScript. To make the most of React Native, it helps to understand React itself. This section can get you started or can serve as a refresher course.
  • 12. Sample code of a React Native first use JavaScript’s import to import React and React Native’s Text Core Component You can think of components as blueprints. Whatever a function component returns is rendered as a React element. React elements let you describe what you want to see on the screen. Here the Cat component will render a <Text> element: You can export your function component with JavaScript’s export default for use throughout your app like so:
  • 13. JSX ∙ JSX is a syntax extension for JavaScript that allows you to write HTML-like code in your JavaScript files. It is commonly used in React to define the structure and appearance of components.
  • 14. Props ∙ Props is short for “properties”. Props let you customize React components. For example, here you pass each <Cat> a different name for Cat to render:
  • 16. State While you can think of props as arguments you use to configure how components render, state is like a component’s personal data storage. State is useful for handling data that changes over time or that comes from user interaction. State gives your components memory! After buttons are pressed
  • 17. Setting up the development environment ∙ Download Node.js ∙ Download ExpoGo (iOS or Android) ∙ Download Visual Studio Code ∙ 1. Select folder ∙ 2. Check node.js version  node -v ∙ 3. Check the node package manager  npm -v ∙ 4. npm install -g expo-cli// add sudo if you’re MacOS] ∙ 5. npx create-expo-app HelloApp when appear >npm install (Wait to install, if long time no respond, try press enter 1 time) ∙ 6. cd HelloApp (go to the HelloApp Directory) ∙ 7. npx expo start ∙ 8. Make sure connect mobile phone with your PC the same Wifi -- if fail, CTRL+C, go back to step 5 ∙ 9. iOS (Scan QR code through camera), Android (Scan using Expo Go App scanner) (will create a project folder)
  • 18. Sample QR code generated from the Visual Studio Code Terminal
  • 19. Installation for web view ∙ npx expo install react-native-web@~0.18.10 [email protected] @expo/webpack- config@^18.0.1 ∙ (Press w will open you a web view)