Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

react-native-screens

Native navigation primitives for React Native with performance optimizations.

Desktop and mobile appsNPM

GitHubWebsite

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What react-native-screens does

react-native-screens is not a navigator you call yourself. It is Software Mansion's layer of native screen containers under React Navigation and Expo Router, and most apps get it by adding one dependency.

react-native-screens popularity

66 / 100
Gid Score, #596 overall
15.8M
downloads a week, npm
3,757
GitHub stars
117
agent projects use it
react-native-screens: downloads per weeknpm, react-native-screens 15,754,177
react-native-screens: GitHub starssoftware-mansion/react-native-screens 3,757

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How react-native-screens is used

  • react-native-screens is a dependency in 117 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.4% of the 4,867 JavaScript/TypeScript ones), #4 of 105 in desktop and mobile apps.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 191; those are left out of every share on this page.
  • Projects that use it most often also use React Native (100.0%), react-native-safe-area-context (100.0%), Expo (94.9%).

By coding agent

64 projects, 2.6%
57 projects, 1.9%
44 projects, 1.3%
14 projects, 3.0%
9 projects, 2.6%
8 projects, 1.7%
6 projects, 2.2%

Often used with

In 100.0% of its projects
In 100.0% of its projects
In 94.9% of its projects
In 85.5% of its projects
In 83.8% of its projects
In 100.0% of its projects
In 75.2% of its projects
In 73.5% of its projects

react-native-screens in practice

Strengths

Native stack on UINavigationController and Fragment

The README says the native stack navigator primitive for React Navigation is built on <code>UINavigationController</code> on iOS and <code>Fragment</code> on Android. For React Navigation v6 and later, it points to the Native Stack Navigator docs.

React Navigation uses it once it is installed

The README says screens support is built into react-navigation from 2.14.0 for all navigator types (stack, tab, drawer, etc). You add the library as a dependency. Then, "when screens are enabled in your application code", react-navigation uses native screens instead of plain Views.

iOS, Android, tvOS, visionOS, Windows and Web

The README checks off six supported platforms. These include tvOS and visionOS alongside the two phone platforms.

Freezing inactive screens (experimental)

Since v3.9.0, <code>enableFreeze(true)</code> in the entry file turns on react-freeze. It stops parts of the tree from rendering while keeping their state. The README labels this experimental. It requires React Native 0.68 or higher, react-navigation 5.x or 6.x, and react-native-screens v3.9.0 or later.

Watch out for

Android needs a MainActivity patch

The README recommends an override in <code>MainActivity</code> that sets <code>RNScreensFragmentFactory</code>. Without it, Activity restarts can lead to crashes. The code must go directly in <code>MainActivity</code>, not in <code>MainActivityDelegate</code>.

No legacy architecture from 4.25.0

The README's Paper table marks 4.25.0+ as "NOT SUPPORTED". The rows below it list older ranges that do run with the legacy architecture turned on, such as 4.19.0+ with react-native 0.80.0+.

Library and React Native versions are tied

The 4.x compatibility tables map each library version to a minimum react-native version. On Fabric, for example, 4.26.0+ needs react-native 0.84.0+. Compat tables for 3.x live on the 3.x branch.

Android MainActivity override to avoid restart crashes (Kotlin)

import android.os.Bundle;
import com.swmansion.rnscreens.fragment.restoration.RNScreensFragmentFactory;

class MainActivity: ReactActivity() {
    //...code

    //react-native-screens override
    override fun onCreate(savedInstanceState: Bundle?) {
      supportFragmentManager.fragmentFactory = RNScreensFragmentFactory()
      super.onCreate(savedInstanceState);
    }
}

More about react-native-screens

Funding
  • GitHub Sponsors: https://github.com/software-mansion
  • 10 GitHub sponsors

See all

Packages around it
  • react-native: Core framework
  • react-native-safe-area-context: Safe area insets
  • expo: App platform and tooling
  • react-native-reanimated: Animations
  • react-native-gesture-handler: Native gestures
  • react: UI library
More in Desktop and mobile apps

Alternatives

react-native-screens This page

MITGid 6615.8M/wk

Compare react-native-screens with another tool

Get started

Install it.

npm install react-native-screens

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## react-native-screens
- Treat it as a dependency of a navigation library, not a standalone navigator. Install with `yarn add react-native-screens` (bare) or `npx expo install react-native-screens` (Expo managed workflow).
- On Android, add the `RNScreensFragmentFactory` override in `onCreate` directly in `MainActivity`, never inside `MainActivityDelegate`.
- Import the native stack from `@react-navigation/native-stack`. Do not use `react-native-screens/native-stack`, which is deprecated.
- Match the library version to the react-native version using the README tables. Do not use 4.25.0+ on an app with the legacy (Paper) architecture turned on.
- For the listed iOS header issues with a search bar or large title, use a `ScrollView` with `contentInsetAdjustmentBehavior="automatic"` as the screen's main container and set `headerTranslucent: true`.
- To opt out, call `enableScreens(false)` in the entry file, or use `detachInactiveScreens` on a single navigator.
- If you set `kotlinVersion` in `android/build.gradle`, it must be Kotlin 1.3.50 or higher.