module 4 App Dev
module 4 App Dev
NAVIGATION IN
REACT NATIVE
MODULE 4
INTRODUCTION TO
REACT NAVIGATION
NAVIGATION
IIn React Native, navigation refers
to the process of managing the
movement between different
screens in a mobile application. It
enables users to transition
between views while maintaining
state, history, and a smooth user
experience.
MODULE 4 MIDTERM
CONSEQUENCES OF
POOR NAVIGATION
01 02 03
HIDDEN MENUS INCONSISTENT DEAD ENDS
LAYOUT Interactive
Crucial features
The navigation elements, like
are concealed
structure and buttons or links,
behind obscure
layout change lead to nowhere,
gestures or
significantly providing no
menus that are
across different feedback or
difficult for
sections of the further
users to
app. navigation
discover.
options.
ITC06 MIDTERM
REACT
NAVIGATION
AND REACT
ROUTER
APPLICATION DEVELOPMENT PAGE 05
AND EMERGING TECHNOLOGIES
MODULE 4 MIDTERM
DIFFERENCES:
MOBILE
VS.
WEB
APPLICATION DEVELOPMENT PAGE 07
AND EMERGING TECHNOLOGIES
ITC06 MIDTERM
INTERACTION METHODS:
MOBILE
Primarily touch-based: taps,
swipes, gestures.
WEB
Clicking links is the primary way to
navigate. React Router is built around
this paradigm, handling URL changes
and browser history."
ITC06 MIDTERM
NAVIGATION PARADIGMS:
MOBILE
Often uses hierarchical
navigation: stacks, drawers, tabs.
WEB
More flexible, often using URLs to
represent different pages.
ITC06 MIDTERM
HARDWARE FEATURES:
MOBILE
React Navigation integrates with
this, allowing users to easily go back.
WEB
No physical back button on the device
itself, but the browser provides
back/forward buttons and the
address bar for navigation control.
ITC06 MIDTERM
NAVIGATION STRUCTURE:
MOBILE
Navigation is often contained within
the app itself.
WEB
URLs are central. They define the
different pages and are directly tied to
navigation.
ITC06 MIDTERM
REACT NAVIGATION:
MOBILE-FIRST APPROACH
React Navigation is purpose-built for
mobile development. It excels at
handling touch inputs, seamlessly
integrates with native gestures, and
supports popular mobile navigation
paradigms like stacks, tabs, and drawers.
This results in a user experience that feels
native and intuitive on both iOS and
Android platforms.
ITC06 MIDTERM
DIFFERENT
TYPES OF
NAVIGATORS
APPLICATION DEVELOPMENT PAGE 14
AND EMERGING TECHNOLOGIES
ITC06 MIDTERM
STACK NAVIGATOR
THE CLASSIC VERTICAL FLOW
A Stack Navigator in React Native is
a navigation pattern that manages
screens in a stack-based structure,
similar to a browser’s history. It
follows a last-in, first-out (LIFO)
approach, meaning the most
recently added screen appears on
top, and users can navigate back to
previous screens.
ITC06 MIDTERM
STACK NAVIGATOR
THE CLASSIC VERTICAL FLOW
A Stack Navigator in React Native is
a navigation pattern that manages
screens in a stack-based structure,
similar to a browser’s history. It
follows a last-in, first-out (LIFO)
approach, meaning the most
recently added screen appears on
top, and users can navigate back to
previous screens.
ITC06 MIDTERM
PUSH:
"Adding a screen to the top
of the stack."
POP:
"Removing the top screen –
going back."
PEEK:
“Looking at the top screen
without removing it."
ITC06 MIDTERM
TAB NAVIGATOR
QUICK ACCESS TO KEY SECTIONS
A Tab Navigator in React
Native is a navigation pattern
that allows users to switch
between different screens
using tabs. It is commonly
used for creating bottom or
top navigation bars, providing
quick access to different
sections of an app.
ITC06 MIDTERM
DRAWER NAVIGATOR
THE HIDDEN MENU
A Drawer Navigator in React
Native is a navigation pattern
that provides a sliding side
menu (drawer) that users can
open and close. It is typically
used for accessing multiple
sections of an app without
cluttering the main UI.
ITC06 MIDTERM
NAVIGATING
BETWEEN
SCREENS
APPLICATION DEVELOPMENT PAGE 20
AND EMERGING TECHNOLOGIES
ITC06 MIDTERM
goBack()
The goBack() method in React
Navigation is used to return to
the previous screen in the
navigation stack. It functions
like the back button in a web
browser or mobile app,
removing the current screen
from the stack and displaying
the last visited screen.
ITC06 MIDTERM
push()
The push() method in React
Navigation is used to navigate
to a new instance of the same
screen, even if it's already in the
stack. Unlike navigate(), which
won't add a screen if it's already
active, push() always creates a
new instance of the target
screen.
ITC06 MIDTERM
NAVIGATE()
VS. PUSH()
WHEN TO CHOOSE
NAVIGATION
OPTIONS AND
HEADER
CUSTOMIZATION
APPLICATION DEVELOPMENT PAGE 26
AND EMERGING TECHNOLOGIES
ITC06 MIDTERM
WHAT IS A HEADER IN
REACT NAVIGATION?
A header in React Navigation is the
top bar that appears in a mobile
app screen.
It typically contains:
PASSING
PARAMETERS
BETWEEN
SCREENS
APPLICATION DEVELOPMENT PAGE 29
AND EMERGING TECHNOLOGIES
ITC06 MIDTERM
DATA SERIALIZATION
Data Serialization is the process of
converting data structures (like
objects or arrays) into a format
that can be easily stored,
transmitted, or reconstructed later.
In React Native, serialization is
often used when passing data
between screens, storing data in
local storage, or sending data over
a network.
ITC06 MIDTERM
HANDLING
DYNAMIC
SCREEN
CONTENT
ITC06 MIDTERM
BEST
PRACTICES FOR
NAVIGATION IN
REACT NATIVE
APPLICATION DEVELOPMENT PAGE 37
AND EMERGING TECHNOLOGIES
ITC06 MIDTERM
IMPROVING PERFORMANCE
WITH LAZY LOADING
WHAT IS LAZY LOADING?
Lazy loading is a
technique that loads only
the necessary
screens/components
when required instead of
loading everything at
once.
ITC06 MIDTERM
ENSURING ACCESSIBILITY
IN NAVIGATION
Accessibility ensures that
people with disabilities
(e.g., visual impairments,
motor disabilities) can
navigate your app
effortlessly.
ITC06 MIDTERM
Thank you
QUIZ TIME!!!