# react-native-screens — card for AI agents

Native navigation primitives for React Native with performance optimizations.

Category: Desktop and mobile apps · npm package `react-native-screens` · latest version 4.30.1 (checked 2026-11-01)
Install: `npm install react-native-screens`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (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.

## Docs written for agents
- [llms.txt (index of the docs)](https://docs.swmansion.com/react-native-screens/llms.txt)

## What it is
- react-native-screens is Software Mansion's library of native navigation primitives for React Native. It is MIT licensed, and the repository was created on 2018-08-03. The README says it "aims to expose native navigation container components to React Native". It also says the library is not meant to be used on its own, but as a dependency of a full navigation library.
- Most people never import it directly. The project site says it is used directly by React Navigation and Expo Router. The README adds that screens support has been built into react-navigation since version 2.14.0. When screens are enabled, react-navigation renders screens with it instead of plain React Native Views. The latest release, 4.30.1 (2026-10-28), backports iOS fixes for Tabs, Stack v4 and SplitView.
- The README speaks to two groups. App developers add the package and handle the Android setup and version tables. Authors of navigation libraries use its `<ScreenContainer>` and `<Screen>` components to control which parts of the React tree stay attached to the native view hierarchy.

## Caveats
- Android needs a MainActivity patch: The README recommends an override in `MainActivity` that sets `RNScreensFragmentFactory`. Without it, Activity restarts can lead to crashes. The code must go directly in `MainActivity`, not in `MainActivityDelegate`.
- 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.
- Old native-stack import is going away: Native stack v5, imported from `react-native-screens/native-stack`, is deprecated. The README says it will be removed in the upcoming minor release. v4 of this library supports only `@react-navigation/native-stack` v7.
- A list of known iOS header issues: Under "Common problems", the README links three iOS header issues: a focused search bar, content cut off by a search-bar header, and RefreshControl with large titles. It gives one solution under that heading. A separate "Other problems" table links its own fixes and explanations for issues such as a memory leak between screens in the same stack.

## Numbers (AgentGid data)
- Gid Score: 66.2 (#596 of all tools, 14 of 105 in its category)
- Used in 117 public projects set up for AI coding agents (1.9%)
- Downloads last week: 15,754,177 (as of 2026-11-24), +52.8% over 4 weeks
- GitHub stars: 3,757 (as of 2026-11-24)
- Last push: 2026-11-23

## Often used with
React Native 100.0%, react-native-safe-area-context 100.0%, Expo 94.9%, React Native Reanimated 85.5%, React Native Gesture Handler 83.8%, React 100.0%

## Links
- AgentGid page: https://agentgid.com/tools/react-native-screens/
- Homepage: https://github.com/software-mansion/react-native-screens#readme
- Repository: https://github.com/software-mansion/react-native-screens
- Source: https://github.com/software-mansion/react-native-screens#readme
- Source: https://github.com/software-mansion/react-native-screens
- Source: https://github.com/software-mansion/react-native-screens/releases
- Source: https://docs.swmansion.com/react-native-screens/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
