{
 "kind": "tool",
 "slug": "react-native-screens",
 "path": "tools/react-native-screens/",
 "name": "react-native-screens",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Desktop and mobile apps",
   "tools/desktop-mobile/"
  ]
 ],
 "lead": "Native navigation primitives for React Native with performance optimizations.",
 "chips": [
  {
   "label": "Desktop and mobile apps",
   "path": "tools/desktop-mobile/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install react-native-screens"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/software-mansion/react-native-screens"
  },
  {
   "label": "Website",
   "href": "https://github.com/software-mansion/react-native-screens#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/software-mansion/react-native-screens"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Oct 28, 2026. ",
   "src": "https://github.com/software-mansion/react-native-screens"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "117 projects",
   "status": "info",
   "sub": "#4 of 105 in its category",
   "note": "Dependency in 117 public GitHub projects set up for AI coding agents that we scanned (1.9%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://docs.swmansion.com/react-native-screens/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What react-native-screens does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "react-native-screens popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "66",
       "of": "/ 100",
       "l": "Gid Score, #596 overall"
      },
      {
       "n": "15.8M",
       "l": "downloads a week, npm"
      },
      {
       "n": "3,757",
       "l": "GitHub stars"
      },
      {
       "n": "117",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How react-native-screens is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "64 projects, 2.6%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "57 projects, 1.9%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "44 projects, 1.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "14 projects, 3.0%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "9 projects, 2.6%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "8 projects, 1.7%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "6 projects, 2.2%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "React Native",
       "path": "tools/react-native/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "react-native-safe-area-context",
       "path": "tools/react-native-safe-area-context/"
      },
      {
       "l": "In 94.9% of its projects",
       "v": "Expo",
       "path": "tools/expo/"
      },
      {
       "l": "In 85.5% of its projects",
       "v": "React Native Reanimated",
       "path": "tools/react-native-reanimated/"
      },
      {
       "l": "In 83.8% of its projects",
       "v": "React Native Gesture Handler",
       "path": "tools/react-native-gesture-handler/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 75.2% of its projects",
       "v": "React Native Web",
       "path": "tools/react-native-web/"
      },
      {
       "l": "In 73.5% of its projects",
       "v": "React Navigation",
       "path": "tools/react-navigation-native/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "react-native-screens in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Native stack on UINavigationController and Fragment",
       "v": "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."
      },
      {
       "l": "React Navigation uses it once it is installed",
       "v": "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."
      },
      {
       "l": "iOS, Android, tvOS, visionOS, Windows and Web",
       "v": "The README checks off six supported platforms. These include tvOS and visionOS alongside the two phone platforms."
      },
      {
       "l": "Freezing inactive screens (experimental)",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Android needs a MainActivity patch",
       "v": "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>."
      },
      {
       "l": "No legacy architecture from 4.25.0",
       "v": "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+."
      },
      {
       "l": "Library and React Native versions are tied",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Android MainActivity override to avoid restart crashes (Kotlin)"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Kotlin",
       "code": "import android.os.Bundle;\nimport com.swmansion.rnscreens.fragment.restoration.RNScreensFragmentFactory;\n\nclass MainActivity: ReactActivity() {\n    //...code\n\n    //react-native-screens override\n    override fun onCreate(savedInstanceState: Bundle?) {\n      supportFragmentManager.fragmentFactory = RNScreensFragmentFactory()\n      super.onCreate(savedInstanceState);\n    }\n}"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about react-native-screens",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/software-mansion",
        "10 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "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"
       ]
      },
      {
       "title": "More in Desktop and mobile apps",
       "path": "tools/desktop-mobile/",
       "items": [
        {
         "text": "React Native",
         "path": "tools/react-native/"
        },
        {
         "text": "Expo",
         "path": "tools/expo/"
        },
        {
         "text": "react-native-safe-area-context",
         "path": "tools/react-native-safe-area-context/"
        },
        {
         "text": "React Native Gesture Handler",
         "path": "tools/react-native-gesture-handler/"
        },
        {
         "text": "React Navigation",
         "path": "tools/react-navigation-native/"
        },
        {
         "text": "React Native Async Storage",
         "path": "tools/react-native-async-storage-async-storage/"
        },
        {
         "text": "react-native-svg",
         "path": "tools/react-native-svg/"
        },
        {
         "text": "React Navigation Bottom Tabs",
         "path": "tools/react-navigation-bottom-tabs/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "react-native-screens",
       "me": true,
       "facts": [
        "MIT",
        "Gid 66",
        "15.8M/wk"
       ]
      }
     ],
     "more": "Compare react-native-screens with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install react-native-screens"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## react-native-screens\n- 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).\n- On Android, add the `RNScreensFragmentFactory` override in `onCreate` directly in `MainActivity`, never inside `MainActivityDelegate`.\n- Import the native stack from `@react-navigation/native-stack`. Do not use `react-native-screens/native-stack`, which is deprecated.\n- 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.\n- 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`.\n- To opt out, call `enableScreens(false)` in the entry file, or use `detachInactiveScreens` on a single navigator.\n- If you set `kotlinVersion` in `android/build.gradle`, it must be Kotlin 1.3.50 or higher.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm react-native-screens"
  ],
  [
   "Category",
   "Desktop and mobile apps"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "4.30.1, October 28, 2026"
  ],
  [
   "On GitHub since",
   "August 2018"
  ],
  [
   "Gid Score",
   "66.2"
  ],
  [
   "Rank in category",
   "#4 of 105"
  ],
  [
   "GitHub",
   "software-mansion/react-native-screens"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [
  "Used by React Navigation, Expo Router, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/software-mansion.png"
}