SlideShare una empresa de Scribd logo
1 de 29
Introduction to React Native
Dani Akash S
What is a React Native App?
Advantages
● Android and iOS apps with Single
Codebase
● Native Performance
● Increased Developer Productivity
● Use Native Code when needed
● Can be integrated into existing
Native App
The Reactive World
There is too much to display
● Text
● Images
● Forms
● Ads
● Animation
● Static Content
● Dynamic Content
● Responsive Designing
There are too many events to Handle
● Clicks
● Form Submissions
● Real Time Updates
● Ajax Calls
● Analytics
● Navigation
Modern Single Page Applications are complex
Managing the State of all the
components is difficult.
Changes to the DOM
Every Event Triggers a change.
● Changes to Visual Styles is
called repaint
● Changes to layout of DOM
elements is called reflow
● Repaint and Reflow are
blocking events
Repaints and Reflows are
Expensive
React
A library for building User Interfaces.
React organizes the UI into separate components and renders them.
● State and Props are used to pass data to the React’s view layer.
● React does not make any assumptions based on the rest of the technology stack.
● It simply re-renders the UI whenever state or props changes.
● Before rendering the HTML it compares the changes using Virtual DOM.
● It then renders the part of HTML that is different from the computed Virtual DOM.
● React has several lifecycle methods that are called at different phases of the
component.
How React Works
UnMounting
● componentWillUnmount()
Updating
● componentWillReceiveProps()
● shouldComponentUpdate()
● componentWillUpdate()
● render()
● componentDidUpdate()
Lifecycle Methods
Mounting
● constructor()
● componentWillMount()
● render()
● componentDidMount()
Advantages
● Rendering is fast due to Virtual DOM.
● Since each part of the application is
organized into components, the code
becomes more maintainable and
scalable.
● Lifecycle methods make it easy to
update View layer based on Events.
● Managing component states for large
applications can be made simple
using a state management library.
Getting Started with React Native
Development Environment
1. Node.js
2. React Native Cli
3. Android Studio
4. XCode (only on Mac)
5. JS Friendly Text Editor of your choice
https://facebook.github.io/react-native/doc
s/getting-started.html
Let’s code!
Developer Friendly Tools
Exclusive on React Native!!
● Hot Reloading
● Layouts using Flexbox
● Wireless Debugging
● UI frameworks
● Blueprints to kick start your
project
● Community powered libraries
Checkout the following libraries!
Easily add High Quality animations directly from After Effects
Lottie
By Airbnb - https://airbnb.design/lottie/
Display Maps in your React Native app
React Native Maps
By Airbnb - https://github.com/airbnb/react-native-maps
Essential UI Components for building an App
Native Base
By GeekyAnts - https://nativebase.io/
Easy to use Navigators
React Navigation
By React Community - https://reactnavigation.org/
Build React Native app on any OS.
No Android Studio or XCode needed!
Create React Native App
By React Community - https://github.com/react-community/create-react-native-app
And much more to make
development simpler…
Feel Free to Explore!
Thank You!
Connect with me on:
● @DaniAkashS
● linkedin.com/in/daniakash

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Intro to react native
Intro to react nativeIntro to react native
Intro to react native
 
Intro To React Native
Intro To React NativeIntro To React Native
Intro To React Native
 
React native
React nativeReact native
React native
 
React Native - Getting Started
React Native - Getting StartedReact Native - Getting Started
React Native - Getting Started
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
 
Getting started with Next.js - IM Tech Meetup - Oct 2022.pptx
Getting started with Next.js - IM Tech Meetup - Oct 2022.pptxGetting started with Next.js - IM Tech Meetup - Oct 2022.pptx
Getting started with Next.js - IM Tech Meetup - Oct 2022.pptx
 
API Platform and Symfony: a Framework for API-driven Projects
API Platform and Symfony: a Framework for API-driven ProjectsAPI Platform and Symfony: a Framework for API-driven Projects
API Platform and Symfony: a Framework for API-driven Projects
 
React workshop
React workshopReact workshop
React workshop
 
React-JS.pptx
React-JS.pptxReact-JS.pptx
React-JS.pptx
 
React JS - A quick introduction tutorial
React JS - A quick introduction tutorialReact JS - A quick introduction tutorial
React JS - A quick introduction tutorial
 
React js
React jsReact js
React js
 
Introduction to React
Introduction to ReactIntroduction to React
Introduction to React
 
Introduction to react_js
Introduction to react_jsIntroduction to react_js
Introduction to react_js
 
Introduction Node.js
Introduction Node.jsIntroduction Node.js
Introduction Node.js
 
Intro to React
Intro to ReactIntro to React
Intro to React
 
Reactjs
Reactjs Reactjs
Reactjs
 
React js
React jsReact js
React js
 
How to Convert a Component Design into an MUI React Code
How to Convert a Component Design into an MUI React CodeHow to Convert a Component Design into an MUI React Code
How to Convert a Component Design into an MUI React Code
 
ReactJS
ReactJSReactJS
ReactJS
 

Similar a Introduction to react native

Reactjs notes.pptx for web development- tutorial and theory
Reactjs  notes.pptx for web development- tutorial and theoryReactjs  notes.pptx for web development- tutorial and theory
Reactjs notes.pptx for web development- tutorial and theory
jobinThomas54
 
l1-reactnativeintroduction-160816150540.pdf
l1-reactnativeintroduction-160816150540.pdfl1-reactnativeintroduction-160816150540.pdf
l1-reactnativeintroduction-160816150540.pdf
Hương Trà Pé Xjnk
 

Similar a Introduction to react native (20)

20180518 QNAP Seminar - Introduction to React Native
20180518 QNAP Seminar - Introduction to React Native20180518 QNAP Seminar - Introduction to React Native
20180518 QNAP Seminar - Introduction to React Native
 
Hands on react native
Hands on react nativeHands on react native
Hands on react native
 
Web summit.pptx
Web summit.pptxWeb summit.pptx
Web summit.pptx
 
From React to React Native - Things I wish I knew when I started
From React to React Native - Things I wish I knew when I startedFrom React to React Native - Things I wish I knew when I started
From React to React Native - Things I wish I knew when I started
 
React.js vs node.js
React.js vs node.jsReact.js vs node.js
React.js vs node.js
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
React native introduction (Mobile Warsaw)
React native introduction (Mobile Warsaw)React native introduction (Mobile Warsaw)
React native introduction (Mobile Warsaw)
 
React Js Simplified
React Js SimplifiedReact Js Simplified
React Js Simplified
 
React native
React nativeReact native
React native
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
 
Industrial Training.pptx
Industrial Training.pptxIndustrial Training.pptx
Industrial Training.pptx
 
Comparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAsComparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAs
 
React js Rahil Memon
React js Rahil MemonReact js Rahil Memon
React js Rahil Memon
 
Choosing your frontend web framework.pptx
Choosing your frontend web framework.pptxChoosing your frontend web framework.pptx
Choosing your frontend web framework.pptx
 
Introduction to Redux.pptx
Introduction to Redux.pptxIntroduction to Redux.pptx
Introduction to Redux.pptx
 
Reactjs notes.pptx for web development- tutorial and theory
Reactjs  notes.pptx for web development- tutorial and theoryReactjs  notes.pptx for web development- tutorial and theory
Reactjs notes.pptx for web development- tutorial and theory
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
Lecture 9 - ReactJs.pptx
Lecture 9 - ReactJs.pptxLecture 9 - ReactJs.pptx
Lecture 9 - ReactJs.pptx
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
 
l1-reactnativeintroduction-160816150540.pdf
l1-reactnativeintroduction-160816150540.pdfl1-reactnativeintroduction-160816150540.pdf
l1-reactnativeintroduction-160816150540.pdf
 

Último

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 

Último (20)

%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 

Introduction to react native

  • 1. Introduction to React Native Dani Akash S
  • 2. What is a React Native App?
  • 3. Advantages ● Android and iOS apps with Single Codebase ● Native Performance ● Increased Developer Productivity ● Use Native Code when needed ● Can be integrated into existing Native App
  • 5. There is too much to display ● Text ● Images ● Forms ● Ads ● Animation ● Static Content ● Dynamic Content ● Responsive Designing There are too many events to Handle ● Clicks ● Form Submissions ● Real Time Updates ● Ajax Calls ● Analytics ● Navigation Modern Single Page Applications are complex
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. Managing the State of all the components is difficult.
  • 12. Changes to the DOM Every Event Triggers a change. ● Changes to Visual Styles is called repaint ● Changes to layout of DOM elements is called reflow ● Repaint and Reflow are blocking events
  • 13. Repaints and Reflows are Expensive
  • 14. React A library for building User Interfaces.
  • 15. React organizes the UI into separate components and renders them. ● State and Props are used to pass data to the React’s view layer. ● React does not make any assumptions based on the rest of the technology stack. ● It simply re-renders the UI whenever state or props changes. ● Before rendering the HTML it compares the changes using Virtual DOM. ● It then renders the part of HTML that is different from the computed Virtual DOM. ● React has several lifecycle methods that are called at different phases of the component. How React Works
  • 16. UnMounting ● componentWillUnmount() Updating ● componentWillReceiveProps() ● shouldComponentUpdate() ● componentWillUpdate() ● render() ● componentDidUpdate() Lifecycle Methods Mounting ● constructor() ● componentWillMount() ● render() ● componentDidMount()
  • 17. Advantages ● Rendering is fast due to Virtual DOM. ● Since each part of the application is organized into components, the code becomes more maintainable and scalable. ● Lifecycle methods make it easy to update View layer based on Events. ● Managing component states for large applications can be made simple using a state management library.
  • 18. Getting Started with React Native
  • 19. Development Environment 1. Node.js 2. React Native Cli 3. Android Studio 4. XCode (only on Mac) 5. JS Friendly Text Editor of your choice https://facebook.github.io/react-native/doc s/getting-started.html
  • 21. Developer Friendly Tools Exclusive on React Native!! ● Hot Reloading ● Layouts using Flexbox ● Wireless Debugging ● UI frameworks ● Blueprints to kick start your project ● Community powered libraries
  • 23. Easily add High Quality animations directly from After Effects Lottie By Airbnb - https://airbnb.design/lottie/
  • 24. Display Maps in your React Native app React Native Maps By Airbnb - https://github.com/airbnb/react-native-maps
  • 25. Essential UI Components for building an App Native Base By GeekyAnts - https://nativebase.io/
  • 26. Easy to use Navigators React Navigation By React Community - https://reactnavigation.org/
  • 27. Build React Native app on any OS. No Android Studio or XCode needed! Create React Native App By React Community - https://github.com/react-community/create-react-native-app
  • 28. And much more to make development simpler… Feel Free to Explore!
  • 29. Thank You! Connect with me on: ● @DaniAkashS ● linkedin.com/in/daniakash