React Native Roadmap

React Native is a framework for building iOS and Android apps with React and JavaScript or TypeScript. Your components render as real native views, so apps look and behave like platform apps while the team keeps one codebase and one set of skills. Many consumer and business apps are built this way, and it is a common skill in mobile and full-stack job descriptions.

This roadmap takes you from your first screen to what interviews test: core components, Flexbox layout, navigation, networking, storage and security, animation, performance, testing and shipping to both stores. Each topic has a short explanation, an example where it helps and an exercise. Core topics are expected of everyone, recommended topics are common in jobs and optional ones can wait.

By the end you will be able to build, test and release a complete app and explain the trade-offs behind your choices. Practise problems in coding practice and track your progress in progress page.

Level
Beginner to advanced
Time
10–14 weeks at about 8 hours a week, less if you already know React
Scope
56 topics in 9 stages
Before you start
Modern JavaScript Roadmap: arrow functions, destructuring, modules, array methods and async code; The React Roadmap basics: components, props, state and hooks; Basic CSS Roadmap ideas such as the box model and Flexbox; Comfort with the terminal, npm and Git and GitHub Roadmap

What you will be able to do

  • Build multi-screen iOS and Android apps with core components, Flexbox and reusable styles.
  • Navigate between screens with Expo Router or React Navigation and handle deep links.
  • Fetch data, manage state and store tokens and data safely on the device.
  • Render long lists smoothly and find performance problems with profiling.
  • Write unit, component and end-to-end tests for a mobile app.
  • Build and submit an app to the App Store and Google Play and ship updates.
  • Explain when to choose Expo, the bare CLI, native modules or an alternative framework.

The roadmap at a glance

  1. Stage 1Foundations and SetupBeginner · 1–2 weeks · 9 topics
  2. Stage 2Core Components and StylingBeginner · 2 weeks · 8 topics
  3. Stage 3Input, Touch and InteractionBeginner · 1–2 weeks · 5 topics
  4. Stage 4Lists and Data DisplayIntermediate · 1–2 weeks · 4 topics
  5. Stage 5Navigation and NetworkingIntermediate · 2 weeks · 7 topics
  6. Stage 6Storage, Authentication and SecurityIntermediate · 1–2 weeks · 6 topics
  7. Stage 7Animations, Accessibility and Native FeaturesIntermediate · 2 weeks · 4 topics
  8. Stage 8PerformanceAdvanced · 1–2 weeks · 5 topics
  9. Stage 9Testing, Release and the Wider EcosystemAdvanced · 2 weeks · 8 topics

Stage 1 Foundations and Setup

Beginner1–2 weeks9 topics

Goal. Explain what React Native is, choose between Expo and the React Native CLI, and run an app on a simulator and a real phone.

Introduction: What React Native Is and Why Use React Native? Core

React Native lets you build iOS and Android apps with JavaScript or TypeScript and React. You write components, and the framework renders real native views such as UIView on iOS and android.view.View on Android. It does not wrap a web page in a shell, which is why scrolling, text input and gestures feel native.

Teams choose it for one team and one language across two platforms, shared business logic with a web app, fast iteration through hot reloading and a large package ecosystem. The trade-offs are a bridge to native code when you need a platform feature that has no package, a larger app size than a minimal native app and the need to follow platform design rules for each system.

Practice. Write down three apps you use daily and decide which parts would be easy and which hard to build with one shared codebase.

Learn the Pre-requisites: JavaScript Basics Core

Before React Native you need working JavaScript: let and const, arrow functions, destructuring, spread, template strings, modules with import and export, array methods such as map, filter and reduce, and promises with async and await. See the JavaScript Roadmap roadmap for each of these.

You also need the React basics from the React Roadmap roadmap: components, props, state, hooks and the rule that the UI is a function of state. TypeScript is optional on day one but nearly every professional project uses it, so read TypeScript Roadmap soon after.

Practice. Write a function that fetches JSON with async and await, filters the result with array methods and logs the names of matching items.

React Native Versus the Web: Core Ideas Core

If you know React for the web, most ideas carry over. The differences matter on day one. There is no DOM, so no div, span or img; you use View, Text and Image. There is no CSS file; styles are JavaScript objects. All text must sit inside a Text component. Layout uses Flexbox with the column direction by default. Navigation is not URL based unless you add it.

Your JavaScript runs on a device inside the Hermes engine, and a native layer draws the views. The modern architecture, called the New Architecture, replaces the old asynchronous bridge with direct calls through JSI, and it is the default in current releases.

Practice. List five web habits (for example using a div or a CSS class) and write the React Native replacement for each.

Expo and the React Native CLI: Choosing a Toolchain Core

There are two ways to start. Expo is a framework and toolset on top of React Native. It provides a project template, a build service, a large set of maintained libraries and over-the-air updates. The React Native CLI, also called the community CLI, gives you bare ios and android native projects that you manage yourself.

The React Native team now recommends starting with a framework, and Expo is the main one. You can still add custom native code to an Expo project through development builds and config plugins. Use the bare CLI only when you must own the native projects from the start, for example when embedding React Native in an existing native app.

Practice. Read the list of Expo libraries and mark which ones you would otherwise need to add as native modules by hand.

Environment Setup and Create Expo App Core

Install a current Node.js release, a code editor and git. For Expo, create a project with one command and start the development server.

npx create-expo-app@latest my-app
cd my-app
npx expo start

The terminal shows a QR code. Scan it with the Expo Go app to open the project on a phone, or press i or a to open a simulator. For the CLI path you also need Xcode on a Mac and Android Studio with an SDK and an emulator, and you must set ANDROID_HOME. Run npx expo-doctor or npx react-native doctor to find missing parts.

Practice. Create a new Expo app, change the text on the home screen and watch it update on a simulator.

Expo Snack and Running on Device Recommended

Expo Snack is an online editor that runs React Native code in a browser preview or on your phone, with no installation. It is useful for trying an idea, sharing a bug report or answering a question in an interview exercise.

For Running on Device, the simplest route is Expo Go, but it only includes the native modules that ship with it. When you add a library with custom native code you need a development build, which you create with EAS Build or locally with npx expo run:ios and npx expo run:android. For the CLI, plug in an Android phone with USB debugging enabled, or sign an iOS app with your Apple developer account for a connected iPhone.

Practice. Build a counter in Expo Snack and open it on your phone through the QR code.

Project Structure, File Extensions and Entry Points Core

A new Expo project holds app.json or app.config.js for settings, package.json, an assets folder and a source folder. With Expo Router, files under app become screens. Use .tsx for files with JSX and .ts for plain TypeScript, or .jsx and .js in JavaScript projects.

Metro, the bundler, also understands platform File Extensions. A file called Button.ios.tsx is chosen on iOS and Button.android.tsx on Android, while Button.tsx is the shared fallback. You import it as ./Button and Metro picks the right one. Files such as .native.tsx and .web.tsx work the same way for native versus web.

Practice. Create one component with an iOS version and an Android version and import it from a screen without naming the platform.

Development Workflow: Fast Refresh, Metro Bundler and the In-App Developer Menu Core

The Metro Bundler turns your files into a JavaScript bundle and serves it to the app. It resolves imports, transforms TypeScript and JSX with Babel and watches files. When you save a file, Enabling Fast Refresh swaps the changed module and keeps component state where it can. If an edit breaks a hook rule or exports non-components from a component file, Fast Refresh falls back to a full reload.

The In-App Developer Menu opens with a shake on a device, Cmd+D on iOS simulator or Cmd+M on Android emulator. From there you reload, open DevTools, toggle the performance monitor and inspect elements. Clear the Metro cache with npx expo start -c when you see odd stale errors.

Practice. Open the developer menu, toggle the performance monitor and force a full reload using a keyboard shortcut.

DevTools, LogBox and Debugging Core

React Native DevTools is the supported debugger. It attaches to the Hermes runtime and gives you a console, a source debugger with breakpoints, a network panel in recent versions and the React Components and Profiler tabs. Press j in the Expo terminal to open it.

LogBox is the in-app overlay that shows warnings as yellow badges and errors as red full-screen messages. Read the component stack in the message. You can silence a known noisy warning with LogBox.ignoreLogs, but do that rarely, because it hides real problems. For native crashes use Xcode or Android Studio logs, and adb logcat for Android.

Practice. Set a breakpoint in an event handler, inspect its variables, then trigger a deliberate error and read the LogBox message.

Stage 2 Core Components and Styling

Beginner2 weeks8 topics

Goal. Build a static screen with core components, Flexbox layouts and styles that adapt to different devices.

Components and Core Components Core

Everything on screen is a component. Core Components are those shipped with React Native and mapped to native views: View, Text, Image, ScrollView, TextInput, Pressable, FlatList and others. You compose them into your own components, which are plain functions that return JSX.

import { View, Text } from 'react-native';
export function Card({ title }: { title: string }) {
  return (
    <View>
      <Text>{title}</Text>
    </View>
  );
}

Keep components small and give each a single job. Put reusable ones in a shared folder and screens in another.

Practice. Split a profile screen into Avatar, Name and Stats components.

JSX in React Native Core

JSX is the syntax that looks like markup but compiles to function calls. In React Native the tags are native components, not HTML. Expressions go in curly braces, props pass values, and a component must return one root element or a fragment <>...</>.

Conditional rendering uses && or the ternary operator. Be careful with {count && <Badge />}: when count is 0 React Native tries to render the number outside a Text, which crashes on some versions. Write {count > 0 && <Badge />} instead. Lists render with map and need a stable key, though for long lists you should use FlatList.

Practice. Render a badge only when a count is above zero and confirm it does not crash at zero.

View and Text Component Core

View is the basic container, similar to a div but with Flexbox as its layout model. It can carry styles, accessibility settings and touch handlers, and it nests as deep as you need.

The Text Component displays text. All strings must be inside it, and nesting Text inside Text lets you style parts of a sentence, with child text inheriting parent style. Useful props are numberOfLines with ellipsizeMode to truncate, selectable to allow copying and onPress. Font scaling follows the user's system setting by default, which is good for accessibility, and maxFontSizeMultiplier caps it where a layout would break.

Practice. Show a paragraph with a bold word, a tappable link-style word and a three-line limit with an ellipsis.

Image and ImageBackground Core

Image shows pictures. Local files use require, and remote images need a source object with a uri and an explicit width and height, because React Native cannot know a remote size before it loads.

<Image source={require('./logo.png')} />
<Image source={{ uri: 'https://example.com/a.jpg' }}
       style={{ width: 200, height: 120 }} resizeMode="cover" />

ImageBackground is a component that renders an image behind its children, which suits hero banners. For lists of photos the Expo expo-image package adds caching, placeholders and better memory use than the built-in component. Always provide an alt or accessibilityLabel for meaningful images.

Practice. Build a card with a background photo and a title on top, using a placeholder while the picture loads.

Props and State Core

Props are inputs passed from a parent to a child and are read-only. State is data a component owns, kept with useState; changing it re-renders the component.

function Counter() {
  const [n, setN] = useState(0);
  return <Pressable onPress={() => setN(v => v + 1)}><Text>{n}</Text></Pressable>;
}

In mobile apps keep state close to where it is used and lift it up only when siblings need it. Anything you can compute from props or state during render should not be stored in state. The React Roadmap roadmap covers hooks in more depth.

Practice. Build a stepper with plus and minus buttons whose limits come from props.

Styling in React Native: Stylesheets, CSS Basics and Layouts & Flexbox Core

Stylesheets in React Native are JavaScript objects with camelCase names such as backgroundColor. StyleSheet.create groups them, and arrays combine them, with later entries winning. There is no cascade, no selectors and no units: numbers mean density-independent pixels. The CSS Basics you know, like colour, margin, padding and border, still apply, but percentages are limited and shorthand like margin: 10 20 is not accepted.

Layouts & Flexbox work as on the web with two differences: flexDirection is column by default and flex: 1 means fill the available space. Use justifyContent for the main axis, alignItems for the cross axis, gap for spacing and position: 'absolute' for overlays.

const styles = StyleSheet.create({
  row: { flexDirection: 'row', gap: 8, alignItems: 'center' },
  grow: { flex: 1 },
});

Practice. Rebuild a chat bubble list row with an avatar, name, message and time using only Flexbox.

Responsive Layout, Dimensions and Platform Module Core

Phones differ in size, density and orientation. Use useWindowDimensions to react to size changes and rotation, and prefer flex layouts over fixed widths. The Platform Module reports Platform.OS (ios, android, web) and Platform.Version.

const shadow = Platform.select({
  ios: { shadowOpacity: 0.2, shadowRadius: 4 },
  android: { elevation: 4 },
});

Writing Platform Specific Code can be done inline with Platform.select, with separate files through platform extensions or with different components per platform. Prefer small inline differences and move to separate files when more than a few lines differ. Test on a small phone, a large phone and a tablet.

Practice. Make a two-column grid on wide screens that becomes one column on narrow ones, and add a different shadow style for each platform.

SafeAreaView, StatusBar and KeyboardAvoidingView Core

Modern devices have notches, rounded corners, home indicators and on-screen keyboards. SafeAreaView keeps content out of the unsafe regions, but the built-in one only works on iOS, so most projects use react-native-safe-area-context, with its SafeAreaProvider and useSafeAreaInsets hook.

StatusBar controls the clock and battery area: style it as light or dark to match your background. KeyboardAvoidingView moves or resizes its children so the keyboard does not cover an input; on iOS use behavior="padding", on Android the window usually adjusts by itself, depending on softwareKeyboardLayoutMode in app config. Test every form with the keyboard open.

Practice. Build a login form that stays visible above the keyboard on both platforms and respects the notch.

Stage 3 Input, Touch and Interaction

Beginner1–2 weeks5 topics

Goal. Handle taps, text, switches, modals and gestures, and explain how touches reach components.

Button, Pressable and Touchables Core

Button is a minimal built-in control with a title and onPress; it looks different on each platform and is hard to style, so it suits prototypes only. Pressable is the current building block for custom buttons. It wraps any children and exposes onPress, onLongPress, onPressIn, onPressOut, hitSlop and a style function that receives pressed.

<Pressable onPress={save}
  style={({ pressed }) => [styles.btn, pressed && styles.down]}
  accessibilityRole="button">
  <Text>Save</Text>
</Pressable>

The older Touchables, namely TouchableOpacity, TouchableHighlight and TouchableWithoutFeedback, still work and appear in many codebases. Prefer Pressable in new code, and give every target at least about 44 by 44 points.

Practice. Create a reusable AppButton with pressed feedback, a disabled state and a loading state.

Text Input Core

Text Input is the field for typing. It is controlled with value and onChangeText, and it exposes placeholder, secureTextEntry, keyboardType, autoCapitalize, autoComplete, returnKeyType, multiline and onSubmitEditing. Choose the right keyboard type: email-address for emails, number-pad for numbers.

const [email, setEmail] = useState('');
<TextInput value={email} onChangeText={setEmail}
  keyboardType="email-address" autoCapitalize="none"
  autoComplete="email" />

Use a ref to move focus to the next field on submit. For large forms, a library such as React Hook Form avoids re-rendering the whole screen on every keystroke. Validate on blur or on submit, and show errors next to the field.

Practice. Build a sign-up form with three fields, focus passing between them and inline validation messages.

Switch, Activity Indicator and Modal Core

Switch is a native on and off toggle controlled by value and onValueChange. Activity Indicator shows a spinning wheel while something loads; it accepts size and color. Show it instead of content or inside a button, and always give the user a way out of a stuck request.

Modal presents content above the screen, with visible, animationType, transparent and onRequestClose, which Android needs for the back button.

<Modal visible={open} animationType="slide" onRequestClose={close}>
  <View style={{ flex: 1 }}><Button title="Close" onPress={close} /></View>
</Modal>

For a bottom sheet or a full flow, a navigation-based modal screen is usually better than the Modal component, because it handles back gestures and state.

Practice. Build a settings screen with a switch that shows a spinner while saving and a confirmation modal before resetting.

Gesture Responder System and Interactions Recommended

Touches in React Native go through the Gesture Responder System. Each touch has a lifecycle, and views can ask to become the responder through callbacks such as onStartShouldSetResponder and onMoveShouldSetResponder. Only one view responds at a time, and a parent can take over from a child when it asks to capture the move.

Most work with Interactions does not touch this layer. PanResponder wraps it for simple drags. For smooth, modern gestures use React Native Gesture Handler, which runs gesture recognition on the native thread and works with Reanimated. InteractionManager.runAfterInteractions delays heavy work until an animation or transition has finished, which keeps navigation smooth.

Practice. Make a draggable box with PanResponder, then rebuild it with Gesture Handler and compare how smooth each feels.

Scrolling and Swiping, ScrollView and Refresh Control Core

Scrolling and Swiping are the main motions of a phone. Scroll View renders all its children at once inside a scrollable container, which is fine for a form or a short page but wasteful for long data. It supports horizontal, pagingEnabled for swipeable pages, showsVerticalScrollIndicator, contentContainerStyle and keyboardShouldPersistTaps="handled", which makes taps work while the keyboard is open.

Refresh Control adds pull to refresh to a ScrollView, FlatList or SectionList.

<ScrollView refreshControl={
  <RefreshControl refreshing={loading} onRefresh={reload} />}>

Do not nest a vertical ScrollView inside another one in the same direction, as scrolling conflicts appear. Swipe actions on list rows come from Gesture Handler's Swipeable.

Practice. Build a horizontal paging onboarding carousel and a screen with pull to refresh that reloads data.

Stage 4 Lists and Data Display

Intermediate1–2 weeks4 topics

Goal. Render long, changing data efficiently with FlatList and SectionList and tune them for smooth scrolling.

Listings and ListViews: Choosing the Right List Core

Old tutorials mention ListView, which was removed years ago; today's Listings and ListViews are FlatList, SectionList and VirtualizedList, plus community options such as FlashList. Choose by data shape: a flat array goes in FlatList, grouped data with headers in SectionList, a short fixed set in ScrollView.

The key idea is windowing. A list renders only items near the viewport and recycles the rest, so memory stays flat as data grows. A plain ScrollView with map renders everything, and with a few hundred rows the app will stutter or run out of memory.

Practice. Render 5,000 generated rows once with ScrollView and once with FlatList and compare memory use and start time.

FlatList Core

FlatList takes data, a renderItem function and a keyExtractor, which returns a stable string key for each row. It supports headers and footers, separators, empty states and infinite scroll.

<FlatList
  data={items}
  keyExtractor={item => item.id}
  renderItem={({ item }) => <Row item={item} />}
  ListEmptyComponent={<Text>No results</Text>}
  onEndReached={loadMore}
  onEndReachedThreshold={0.5}
/>

renderItem runs many times, so keep rows light, avoid creating new objects in props and wrap row components in React.memo. Use extraData when the row depends on state outside data. Do not use array index as a key if rows can be reordered or removed.

Practice. Build a paginated feed that loads the next page near the end and shows a footer spinner.

SectionList Recommended

SectionList renders grouped rows with sticky headers, such as contacts by letter or messages by day. It takes sections, an array of objects with a title and a data array, a renderItem for rows and a renderSectionHeader for headings.

<SectionList
  sections={[{ title: 'A', data: ['Ana', 'Alex'] }, { title: 'B', data: ['Bo'] }]}
  keyExtractor={(x, i) => x + i}
  renderItem={({ item }) => <Text>{item}</Text>}
  renderSectionHeader={({ section }) => <Text>{section.title}</Text>}
/>

Build the sections once with useMemo rather than on every render. Headers stick to the top by default on iOS, and stickySectionHeadersEnabled controls it. It shares most performance rules with FlatList.

Practice. Group a list of transactions by date with sticky date headers.

Optimizing FlatList Config Core

Optimizing FlatList Config means tuning the props that control windowing. initialNumToRender sets the first batch, windowSize the number of screens kept rendered, maxToRenderPerBatch and updateCellsBatchingPeriod how fast new rows appear, and removeClippedSubviews can free memory on Android at the risk of glitches. getItemLayout lets the list skip measuring when rows have a fixed height, and it allows scrollToIndex without delay.

Reduce work per row first: memoise row components, use stable callbacks with useCallback, resize images and avoid transparent overlays. Fast scrolling into blank space means rows render too slowly, so lower the work per row or raise windowSize carefully. Measure after each change.

Practice. Take a slow list, change one prop at a time and record the frame rate with the performance monitor.

Stage 5 Navigation and Networking

Intermediate2 weeks7 topics

Goal. Move between screens, handle deep links, call APIs, keep state and react to connectivity changes.

Screen Navigation Core

Phones do not have a URL bar, so Screen Navigation is a library concern. The two main options are Expo Router, which maps files in an app folder to screens, and React Navigation, which you configure in code. Expo Router is built on top of React Navigation.

The common navigators are the stack, where screens push and pop with a native-feeling transition, bottom tabs for top-level sections and drawers for side menus. You can nest them, for example tabs that each hold a stack.

router.push('/profile/42');
const { id } = useLocalSearchParams();

Pass small values such as ids as route parameters and load the data on the target screen. Handle the Android back button, and put sign-in screens in a separate group so you can switch between auth and app flows.

Practice. Build a tab app where the first tab holds a list screen that pushes a detail screen using an id parameter.

Networking in React Native with Fetch Core

Networking in React Native uses the same fetch API as the browser, available globally. Axios works too, and TanStack Query is a popular layer for caching, retries and background refresh.

async function load(signal: AbortSignal) {
  const res = await fetch('https://api.example.com/items', { signal });
  if (!res.ok) throw new Error('HTTP ' + res.status);
  return res.json();
}

Note that fetch does not reject on a 404 or 500; you must check res.ok. Add timeouts with AbortController, show loading and error states and cancel requests when a screen unmounts. On Android emulators localhost means the emulator itself, so use 10.0.2.2 to reach your computer. Keep base URLs in environment configuration.

Practice. Fetch a list from a public API, show loading, error and empty states and add a retry button.

Networking Security in React Native Core

Networking Security begins with HTTPS everywhere. iOS blocks plain HTTP through App Transport Security and Android blocks cleartext traffic by default in recent versions, so do not turn these off in production. For sensitive apps, consider certificate pinning, accepting that it adds operational work when certificates rotate.

Never trust the client. Do not put secrets such as API keys with write access or signing keys into the bundle, because the JavaScript can be extracted and read. Keep them on a server. Send short-lived tokens in an Authorization header, validate all input again on the server and avoid logging tokens or personal data.

Practice. Audit a sample app for hard-coded secrets and cleartext URLs and write down each fix.

Websockets and Real-Time Data Recommended

Websockets give a long-lived two-way connection for chat, live prices and collaboration. React Native includes the standard WebSocket API.

const ws = new WebSocket('wss://example.com/feed');
ws.onopen = () => ws.send(JSON.stringify({ type: 'hello' }));
ws.onmessage = e => handle(JSON.parse(e.data));
ws.onclose = () => scheduleReconnect();

Mobile connections drop often, and the OS suspends sockets when the app goes to the background. Reconnect with exponential backoff, resend a session token on reconnect and refetch missed data. Close the socket in the effect cleanup. Use wss://, and for events while the app is closed use push notifications instead.

Practice. Connect to a test echo server, display messages and reconnect automatically after you switch on airplane mode and off again.

Connectivity Status Recommended

Users are often offline or on slow networks. The @react-native-community/netinfo package, or expo-network, tells you whether the device is connected, the type of connection and whether the internet is reachable.

const unsubscribe = NetInfo.addEventListener(s => setOnline(!!s.isConnected));

Show a banner when offline, disable actions that need the network and queue writes to retry later. Treat the flag as a hint, because being connected does not mean the server is reachable. Caching with TanStack Query or a local database makes an app useful offline.

Practice. Add an offline banner and queue a form submission that sends when the connection returns.

State Management for Real Apps Core

State falls into groups: local UI state, shared client state and server state. Local state stays in useState. For shared client state, such as theme or a cart, use Context for small cases, or Zustand or Redux Toolkit when many components update it. For server data, use TanStack Query rather than copying responses into a store.

Keep state serialisable and minimal, put derived values in selectors and avoid re-rendering the whole tree on every change. Persist only what you must, such as the auth session and settings. See React Roadmap for Context and reducers.

Practice. Move a cart from prop drilling to a Zustand store and keep the product list in TanStack Query.

Stage 6 Storage, Authentication and Security

Intermediate1–2 weeks6 topics

Goal. Store data safely on the device, sign users in and protect tokens and permissions.

Storage and Storage in React Native: Choosing a Store Core

Storage in React Native covers three needs: small settings, secrets and structured data. Key-value storage fits flags and preferences, secure storage fits tokens, and a database fits relational or large data. Files fit documents and media.

Pick the simplest option that works: AsyncStorage for non-sensitive strings, expo-secure-store for credentials, expo-sqlite for queries and the file system for downloads. Data stored on the device can be lost when the user clears it or reinstalls, so the server stays the source of truth for important records.

Practice. Sort ten pieces of data from a sample app into the correct store and justify each choice.

React Native Async Storage Core

React Native Async Storage is an asynchronous, unencrypted key-value store that persists across launches. Values are strings, so serialise objects with JSON.

await AsyncStorage.setItem('theme', 'dark');
const theme = await AsyncStorage.getItem('theme');
await AsyncStorage.setItem('prefs', JSON.stringify(prefs));

It is not for secrets, because the data is readable on a rooted device or in a backup. It is also slow for large values. Load saved values once at startup, show a splash screen until they are ready and wrap parsing in try and catch. Libraries such as MMKV offer a faster synchronous alternative.

Practice. Persist a dark mode setting and apply it before the first screen draws.

expo-secure-store and Authentication Core

expo-secure-store saves small values in the iOS Keychain and Android Keystore-backed storage, so it suits refresh tokens.

await SecureStore.setItemAsync('refreshToken', token);
const t = await SecureStore.getItemAsync('refreshToken');

Authentication in a mobile app usually uses OAuth 2.0 with PKCE through the system browser, via expo-auth-session or a provider SDK, or email and password against your own API. Keep an access token in memory and a refresh token in secure storage, refresh on a 401 once, and clear everything on logout. Add biometric sign-in with expo-local-authentication as a convenience on top, not as a replacement for server checks.

Practice. Implement login with a mock API that stores a refresh token securely and restores the session on launch.

expo-sqlite and Expo File System Recommended

expo-sqlite gives you a SQLite database on the device with SQL, transactions and prepared statements, suited to offline-first apps, search and large datasets. See SQL Roadmap for the language.

const db = await SQLite.openDatabaseAsync('app.db');
await db.execAsync('CREATE TABLE IF NOT EXISTS notes (id INTEGER PRIMARY KEY, text TEXT)');
await db.runAsync('INSERT INTO notes (text) VALUES (?)', 'hello');

Expo File System reads, writes, downloads and deletes files in the app's document and cache directories. Use the cache folder for things you can recreate. Always use parameter placeholders, never string concatenation, and plan schema migrations from version one.

Practice. Build a notes list stored in SQLite with search, and download an image into the document directory.

Other Storage Options and Permissions Recommended

Other Storage Options include MMKV for fast key-value data, WatermelonDB or Realm for large synced datasets and the cloud for anything that must survive a reinstall. Choose based on size, query needs and sync requirements.

Permissions protect the camera, location, contacts, photos and notifications. Declare them in app config (Info.plist strings on iOS, manifest entries on Android) and request them in context, when the user taps the feature that needs them. Handle all outcomes: granted, denied and "never ask again", where you send the user to settings. Ask for the minimum, such as "while in use" location rather than always.

Practice. Add a camera feature that explains why it needs permission, handles denial and offers a link to settings.

Security Practices for Mobile Apps Core

Security means assuming the device is hostile. Do not store secrets in the bundle; Hermes bytecode is not encryption. Keep tokens in secure storage, use HTTPS, validate deep link input and sanitise anything rendered from remote sources.

Turn off debug features in release builds, enable code shrinking with R8 and ProGuard on Android, and consider jailbreak and root detection only for high-risk apps, knowing it can be bypassed. Keep dependencies updated, review packages before adding them and rotate any key that was ever committed. The OWASP Mobile Top 10 is a good checklist.

Practice. Run through a mobile security checklist against one of your own apps and fix three findings.

Stage 7 Animations, Accessibility and Native Features

Intermediate2 weeks4 topics

Goal. Add motion, make the app usable for everyone, and reach native APIs including push notifications.

Animations Core

Animations make state changes understandable. React Native has the built-in Animated API, LayoutAnimation for automatic layout changes and the Reanimated library, which is the standard choice for complex work because its animations run on the UI thread.

const x = useSharedValue(0);
const style = useAnimatedStyle(() => ({ transform: [{ translateX: x.value }] }));
x.value = withSpring(100);

Animate transform and opacity, not width or height, as these are cheap. With the built-in API pass useNativeDriver: true where supported. Keep durations short, around 150 to 300 milliseconds, and respect the system "reduce motion" setting.

Practice. Animate a card that slides in and fades, then add a reduce motion check that skips the movement.

Accessibility Core

Accessibility lets people who use screen readers, larger text or switch devices use your app. The built-in readers are VoiceOver on iOS and TalkBack on Android. Set accessibilityLabel for controls without visible text, accessibilityRole such as button or header, accessibilityState for selected or disabled and accessibilityHint for non-obvious results. Group related items with accessible.

Keep touch targets large, give text enough colour contrast, support dynamic font sizes and never rely on colour alone. Announce changes with AccessibilityInfo.announceForAccessibility. Test by turning on the screen reader and completing a task with your eyes closed.

Practice. Turn on VoiceOver or TalkBack and fix every unlabeled control in a screen you built.

Using Native Modules Recommended

When JavaScript cannot reach a platform feature, Using Native Modules lets you write Swift or Kotlin code and call it from JavaScript. With the New Architecture, you define a typed spec in TypeScript, and Codegen creates the native interface, for modules built as TurboModules, while native views are Fabric components. The older bridge-based modules still work through an interop layer in current releases.

Start by looking for an existing package. If you must write your own, with Expo use the Expo Modules API, which is simpler than bare native code. Keep the JavaScript surface small, return promises for slow work and test on both platforms. The cost of a native module is that you now maintain iOS and Android code.

Practice. Follow a guide to write a tiny module that returns the device battery level and call it from a screen.

Push Notifications Recommended

Push Notifications reach users when the app is closed. The path is: the app asks permission, receives a device token from Apple's APNs or Google's FCM, sends it to your server, and the server sends messages through those services. Expo provides expo-notifications and a push service that wraps both.

Handle three cases: the notification arrives while the app is open, the user taps it from the background and the app is launched from it. Use the tap data to deep link to the right screen. Ask for permission after the user sees value, not at first launch. Test on a real device, since simulators have limits, and expire or collapse stale messages on the server.

Practice. Send a test notification to your phone and open a specific screen when it is tapped.

Stage 8 Performance

Advanced1–2 weeks5 topics

Goal. Find the cause of slow screens and long start times and fix it with measurements.

Performance: Understand Frame Rates Core

Performance in a mobile app means a steady frame rate. Most screens refresh 60 times a second, so each frame has about 16 milliseconds, and many modern phones run at 90 or 120, leaving even less. Two threads matter: the JavaScript thread, where your code and React rendering run, and the UI thread, which draws the views.

A dropped frame on the JavaScript thread shows up as an unresponsive tap or choppy list. A dropped frame on the UI thread shows up as a stuttering animation or scroll. Turn on the performance monitor from the developer menu to watch both rates. Test on a low-end Android phone and in a release build, because debug builds are much slower.

Practice. Open the performance monitor on a mid-range Android device and note the rates while scrolling a list.

Common Problem Sources in React Native Performance Core

The Common Problem Sources are well known. Running a development build and judging it, long lists rendered with ScrollView, re-rendering large trees because state sits too high or objects are recreated, heavy work in onPress or effects on the JavaScript thread, unoptimised images, and many console.log calls in release builds. Animating layout properties on the JavaScript thread, and large JSON parse or sort operations, also cause jank.

Fixes: use React.memo, useMemo and useCallback where profiling shows a benefit, split state, virtualise lists, resize and cache images, move animation to Reanimated and defer work with InteractionManager. The React Compiler can add memoisation automatically in projects that enable it.

Practice. Take a janky screen and apply two fixes from this list, recording the improvement.

Profiling and Sourcemaps Core

Profiling replaces guessing. The React DevTools Profiler shows which components rendered and why, and how long each took. The Hermes profiler and tools like Xcode Instruments and Android Studio's profiler show CPU, memory and native time.

Sourcemaps connect minified release code back to your original files, so a crash stack points to a real line. Upload them to your crash reporter, such as Sentry, when you build. Without them, production errors show unreadable names. Record a baseline before a change, change one thing, measure again and keep the results.

Practice. Record a profile of a slow interaction, find the component with the largest render time and fix it.

RAM Bundles, Inline Requires and Startup Time Optional

Startup time depends on how much JavaScript must load and run before the first screen. Hermes precompiles code to bytecode, which already cuts parse time. Inline Requires defer a module load until first use by moving the require call into the function that needs it; Metro can do this automatically with inlineRequires: true in its config.

Guides on RAM Bundles + Inline Requires together describe splitting the bundle into modules loaded on demand and were useful before Hermes. On Hermes they matter less. Measure your own start time first: remove unused libraries, lazy load rarely used screens, keep the root component light and show a splash screen only until data needed for the first screen is ready.

Practice. Turn on inline requires and compare cold start time before and after on a release build.

Speeding up Builds Recommended

Slow builds waste hours. For Android, enable Gradle caching and the daemon, give Gradle enough memory in gradle.properties and build only the architecture you test on. For iOS, keep CocoaPods installed, and use precompiled React Native builds if your version offers them. Reuse builds with EAS Build's cache, or keep a local cache with ccache.

Avoid rebuilding native code when only JavaScript changed: a development build installed once will load new JavaScript from Metro. Remove unused native dependencies, upgrade the toolchain steadily rather than in a rush and run builds in CI on fast machines.

Practice. Time a clean Android build, apply two caching changes and time it again.

Stage 9 Testing, Release and the Wider Ecosystem

Advanced2 weeks8 topics

Goal. Test at several levels, ship to both stores and know the alternatives to React Native.

Testing: The Test Pyramid for Mobile Core

Testing a mobile app has the same layers as other software. Many fast unit tests for logic, a medium number of component tests for screens and a small number of end-to-end tests on a device. Pure functions, reducers and hooks are the cheapest to test. Component tests catch broken UI behaviour without a simulator. End-to-end tests prove that the real app launches and a user can finish key flows.

Run the fast layers on every commit and the end-to-end layer on merge or nightly. Mock the network at the boundary, for example with Mock Service Worker, rather than mocking each function inside your code.

Practice. Draw the pyramid for your own project and list which flows would sit in each layer.

Jest, React Native Testing Library and React Test Renderer Core

Jest is the default test runner and ships in the Expo and CLI templates with the jest-expo or react-native preset. React Native Testing Library renders a component and lets you query it the way a user sees it: by text, role or label. It is the recommended tool; React Test Renderer, the lower-level tool it was built on, is deprecated for new code, so you will mostly meet it in older snapshot tests.

test('increments', async () => {
  render(<Counter />);
  await userEvent.press(screen.getByText('Add'));
  expect(screen.getByText('1')).toBeOnTheScreen();
});

Prefer queries by role and text over test ids, and test behaviour, not implementation. Mock native modules in a setup file.

Practice. Write three tests for a login form: empty submit shows errors, valid submit calls the API and failure shows a message.

Detox and Appium for End-to-End Tests Recommended

Detox is a grey-box end-to-end framework made for React Native. It runs your real app on a simulator or emulator, waits automatically for the app to become idle, and drives it with matchers such as element(by.id('login')).tap(). Its synchronisation makes tests less flaky. Appium is a cross-platform tool that automates apps through WebDriver and any language, and fits teams that already test several app types or use device farms.

Keep end-to-end suites short and focused on the critical paths: sign in, purchase and onboarding. Give elements stable testID values, reset app state between tests and record videos on failure. Maestro is a newer, simpler YAML based option many teams also use.

Practice. Automate login and logout with Detox on an emulator and run it in CI.

Publishing Apps for Android: Google Play Store Core

Publishing Apps for Android means producing a signed Android App Bundle and uploading it to the Google Play Store through the Play Console. Create a developer account, set the app's package name, generate or let Play manage the signing key, fill in the store listing, content rating and data safety form, then roll out to internal testing, closed testing and finally production.

With Expo, eas build --platform android creates the bundle and eas submit uploads it. Increment versionCode for every upload. New personal accounts must meet testing requirements before production, so plan time. Use staged rollouts to release to a small percentage first.

Practice. Create a release build, upload it to internal testing and install it from the Play Store on a phone.

Publishing Apps in App Store for iOS Core

Publishing Apps in App Store needs a paid Apple Developer Program membership, an app record in App Store Connect, a bundle identifier, signing certificates and a provisioning profile. EAS can manage the credentials for you.

Build with eas build --platform ios, upload with eas submit, and use TestFlight for internal and external testers. Then submit for review with screenshots, a description, a privacy policy, privacy nutrition labels and, if you offer sign-in, a demo account. Review usually takes a day or two, and common rejections are crashes, missing account deletion, unclear permission strings and links to external payment for digital goods.

Practice. Ship a build to TestFlight and install it on a second device through an invitation.

Over-the-Air Updates and Release Practice Recommended

Over-the-air updates let you ship JavaScript and asset fixes without a store review, using EAS Update or a similar service. They cannot change native code, so any change to a native module needs a full build. Store rules allow updates that do not change the primary purpose of the app.

Tie each update to a runtime version so it only reaches compatible binaries. Release in stages, watch crash and error rates, and keep a rollback ready. Use environment variables for staging and production, and a crash reporter such as Sentry with sourcemaps uploaded.

Practice. Publish an update to a staging channel, verify it on a test build and roll it back.

React Native Alternatives and React Native for Web Recommended

React Native Alternatives include Flutter, with its own rendering engine and the Dart language, covered in the Flutter Roadmap roadmap; native Swift UI and Jetpack Compose with Kotlin, for the best platform fit; Kotlin Multiplatform for shared logic; and web options like Progressive Web Apps and Capacitor. The right choice depends on the team's skills, the need for platform specific features and the performance targets.

React Native for Web runs your components in the browser through react-native-web, and Expo supports a web target. It suits apps where a shared codebase is more valuable than perfect web conventions. Expect to adapt navigation, hover states, keyboard input and layouts for large screens.

Practice. Run your app on the web target and list three screens that need a different layout.

Expo Tradeoffs and When to Leave the Managed Path Recommended

Expo Tradeoffs are smaller than they used to be. Expo gives fast setup, tested library versions, cloud builds and updates. Costs include dependence on the SDK upgrade schedule, a build service you may pay for at scale, and a larger default binary if you include libraries you do not use.

Config plugins and development builds mean most projects never need to eject. Use the bare CLI if you need to embed React Native into an existing native app, or when your organisation requires a fully custom native build setup. Even then, you can use Expo libraries inside a bare project.

Practice. Write a one-page decision note choosing Expo or the bare CLI for an imaginary company with an existing native app.

Projects to build

Build these in order. Each one should end up in a public repository with a short README that explains your decisions.

  1. Habit trackerBeginner

    Build a one-screen app to add habits and tick them off each day. Save the data with AsyncStorage and style the screen with Flexbox and a dark mode switch.

    Components · State · Pressable · Async Storage

  2. Recipe browserBeginner

    Show recipes from a public API in a FlatList with search, a detail screen and pull to refresh. Handle loading, error and empty states on every screen.

    FlatList · Fetch · Navigation · RefreshControl

  3. Expense tracker with offline storageIntermediate

    Record expenses in an expo-sqlite database, group them by month with a SectionList and show a chart. Add an export that writes a CSV file.

    expo-sqlite · SectionList · File system · Forms

  4. Authenticated social feedIntermediate

    Sign users in with a token flow that stores the refresh token in secure storage, load an infinite feed, support likes with optimistic updates and open posts from deep links.

    Authentication · expo-secure-store · Deep linking · TanStack Query

  5. Chat app with notificationsAdvanced

    Build a chat with a websocket connection, reconnect logic, push notifications that open the right conversation and tests with Testing Library and Detox.

    Websockets · Push notifications · Testing · Animations

  6. Release-ready appAdvanced

    Take any project through the full release path: profile and fix a slow screen, add accessibility labels, set up CI, ship to TestFlight and Play internal testing and publish an over-the-air update.

    Profiling · Accessibility · EAS Build · Publishing

Interview questions

Try to answer each question out loud before you open the answer.

How does React Native work and how is it different from a hybrid web app?Junior

Your JavaScript runs in an engine, usually Hermes, and React produces a tree of elements. A native layer turns it into real platform views, so a Text becomes a native text view. A hybrid app runs a web page in a web view and uses the DOM and CSS. The result is native controls, scrolling and gestures. With the New Architecture, JavaScript calls native code directly through JSI instead of serialising messages over an asynchronous bridge.

What are the differences between Expo and the React Native CLI?Junior

Expo is a framework with a template, maintained libraries, a router, cloud builds and updates. The community CLI gives you bare native projects that you configure yourself. Expo projects can still add native code through development builds and config plugins, so I start with Expo unless I must embed React Native in an existing native app or need a custom native build pipeline.

How does styling work in React Native?Junior

Styles are JavaScript objects, usually made with StyleSheet.create, with camelCase names and unitless numbers. There is no cascade, so styles are applied per component, and arrays merge them. Layout uses Flexbox with a column default. Text styles inherit only inside nested Text. For theming, I use a context or a library that provides tokens, and for platform differences Platform.select.

Why use FlatList instead of ScrollView with map?Junior

ScrollView renders every child at once, so memory and start time grow with the data. FlatList windows the list: it renders items near the viewport and removes distant ones. I provide a stable keyExtractor, keep rows light with React.memo and, for fixed heights, add getItemLayout. ScrollView is fine for short content such as a form.

How do you navigate between screens and pass data?Junior

I use Expo Router or React Navigation. A stack navigator pushes and pops screens, tabs hold top-level sections and nested navigators combine them. I pass small identifiers as route params and load the full data on the target screen from a cache or API, so the screen works from a deep link. I type the params and handle the Android back button.

How do you handle platform differences?Junior

For small differences I use Platform.OS or Platform.select. When a component differs a lot, I create .ios and .android files and Metro chooses the right one. I also follow each platform's conventions for navigation, permissions and back behaviour. I test on both platforms for each feature rather than assuming the same result.

Where would you store an access token, and why not AsyncStorage?Mid

I keep the access token in memory and the refresh token in expo-secure-store, which uses the iOS Keychain and Android Keystore. AsyncStorage is unencrypted and readable from device backups or a rooted device. I also keep tokens short-lived, refresh once on a 401, clear them on logout and never put server secrets in the app bundle.

What causes a React Native app to feel slow, and how do you diagnose it?Mid

Usually work on the JavaScript thread: unnecessary re-renders, heavy lists, big JSON processing and animations driven from JavaScript. I test a release build on a low-end device, watch both frame rates in the performance monitor, then use the React Profiler to see why components rendered. I fix the largest cost first, for example memoising rows or moving an animation to Reanimated, and measure again.

Explain the New Architecture.Mid

It replaces the asynchronous bridge. JSI lets JavaScript hold references to native objects and call them synchronously. TurboModules load native modules lazily with typed interfaces generated by Codegen. Fabric is the new renderer that creates the view tree in shared C++ and supports concurrent React features. In current releases it is the default, and libraries are expected to support it.

How do you test a React Native app?Mid

Unit tests with Jest for logic and hooks, component tests with React Native Testing Library that query by text and role, and a few end-to-end tests with Detox or Maestro for critical flows. I mock the network at the boundary, avoid snapshot tests of large trees and run the unit and component layers on every commit and the end-to-end suite on merge.

How would you implement push notifications?Mid

Ask permission in context, get a device token from APNs or FCM (Expo wraps both), and register it with my server against the user. The server sends messages through the provider. In the app I handle foreground display, taps from the background and launch from a notification, using the payload to deep link. I remove invalid tokens when the provider reports them and test on real devices.

What is an over-the-air update and what are its limits?Senior

It delivers new JavaScript and assets to an installed app without a store review. It cannot change native code, so anything touching native modules or config needs a new binary. I bind updates to a runtime version so incompatible builds never receive them, roll out in stages and keep a rollback. Stores permit it as long as the app's purpose does not change.

When would you write a native module, and how?Senior

When no maintained package covers a platform API or when a hot path needs native speed. First I check existing libraries. If I write one, I use the Expo Modules API or a TurboModule with a typed spec, keep the interface small and async, handle errors on both sides and test both platforms. I weigh the ongoing cost of maintaining Swift and Kotlin code.

How do you structure a large React Native codebase?Senior

I use TypeScript and organise by feature, with each folder holding its screens, components, hooks and tests. Shared UI lives in a design system package, server state in TanStack Query, and client state in a small store. I enforce lint rules and types in CI, keep native configuration in versioned config, and use a monorepo when sharing code with a web app.

How do you make an app accessible?Senior

Give controls roles, labels and states, keep touch targets large, support dynamic type and enough contrast, and make focus order logical. I test with VoiceOver and TalkBack, check that errors are announced and honour reduce motion. Accessibility goes into the definition of done for each screen, because fixing it later costs more.

How would you design offline support?Senior

Treat the local database as the source for the UI: read from SQLite or a cache, write locally first and queue changes to sync. Detect connectivity, retry with backoff and resolve conflicts with a clear rule such as last write wins, or merge by field. Show sync status to the user, handle schema migrations and test by switching airplane mode during use.

Common mistakes

  • Judging performance in a debug build; test a release build on a low-end device.
  • Rendering long data with ScrollView and map; use FlatList with a stable key.
  • Storing tokens in AsyncStorage; use secure storage and keep access tokens short-lived.
  • Writing {count && <View />} and crashing at zero; compare with count > 0.
  • Forgetting to check res.ok after fetch; a 500 response does not throw.
  • Testing on one platform only; run every feature on iOS and Android.
  • Requesting every permission at launch; ask in context and handle denial.
  • Putting secrets in the JavaScript bundle; keep them on a server.
  • Ignoring the keyboard and safe areas; test forms with the keyboard open on a phone with a notch.

Ready-for-interview checklist

  • I can explain how React Native renders native views and what the New Architecture changed.
  • I can start an Expo project and run it on a simulator and a physical phone.
  • I can build a screen with Flexbox that works on small and large devices.
  • I can use Pressable, TextInput, Modal and ScrollView correctly.
  • I can render and tune a FlatList with thousands of rows.
  • I can set up stack and tab navigation, pass params and handle deep links.
  • I can fetch data with loading, error and offline states.
  • I can store settings, secrets and structured data in the right place.
  • I can add accessibility labels and test a screen with a screen reader.
  • I can find a performance problem with the profiler and fix it.
  • I can write Jest and Testing Library tests and describe an end-to-end setup.
  • I can build and submit an app to both stores and ship an over-the-air update.
  • I can explain when to choose Expo, the bare CLI, a native module or another framework.

Related roadmaps

FAQ

How long does it take to learn React Native?

If you already know React, you can build a simple app in two to three weeks. Reaching the level expected for a junior or mid-level role, including navigation, storage, testing and store release, usually takes three to four months at about eight hours a week. Building and shipping a real app teaches the most.

Should I learn React before React Native?

Yes. React Native uses the same components, hooks and state model, and only the building blocks and styling differ. Learn the React Roadmap roadmap first, then spend a week on the differences described in this roadmap.

Is Expo good enough for production apps?

Yes. Expo is the recommended way to start, and many production apps use it with development builds and config plugins for custom native code. Choose the bare CLI only for special cases such as embedding in an existing native app.

Is React Native still worth learning compared with Flutter?

Both are used in industry. React Native suits teams with JavaScript and React experience and companies that also build for the web. Flutter suits teams that want one rendering engine and are happy with Dart. Learn the one that matches the jobs you want, and the concepts transfer.

Do I need a Mac to build iOS apps?

To run the iOS simulator or build locally you need a Mac with Xcode. With Expo and cloud builds you can create iOS builds without a Mac, and test on a phone through a development build, but a Mac still helps for debugging native problems.

Practise while you learn.Solve interview problems in the browser, with hints and a timer.
CodingSQLSystem design
Next Post Previous Post
No Comment
Add Comment
comment url