React Native
Framework for building native iOS and Android apps with React and JavaScript.
3. Used by agents' projects
Dependency in 140 public GitHub projects set up for AI coding agents that we scanned (2.2%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
reactnative.dev/llms.txtFrom the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What React Native does
React Native renders React components written in JavaScript to each platform's native UI, yet its own README says the best way to use it is through a framework such as Expo rather than the bare core.
React Native popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How React Native is used
- React Native is a dependency in 140 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (2.9% of the 4,867 JavaScript/TypeScript ones), #1 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 252; those are left out of every share on this page.
- The most used alternative in our scan is Expo (137 projects).
- Projects that use it most often also use Expo (92.9%), react-native-safe-area-context (86.4%), react-native-screens (83.6%).
- It is more common in projects set up for Cline (6.9%) than for Claude Code (1.6%).
By coding agent
Often used with
React Native in practice
Strengths
The README says React Native primitives render to native platform UI, so the app uses the same platform APIs as other apps. It adds that gestures, text scaling and accessibility "behave the way users expect on each OS."
The README says local changes show up in seconds. JavaScript edits are applied with Fast Refresh, and the native app does not have to be rebuilt.
The README says Native Modules call platform code from JavaScript "synchronously and type-safe." As an alternative, it points to "thousands of existing libraries."
The docs say React Native also works for adding a single view or user flow to an existing native application. You do not have to start from scratch.
Watch out for
The website says React Native does not prescribe routing or how to reach each platform API. For new apps, it recommends a framework like Expo.
The environment setup guide covers running your project with Android Studio and Xcode. That setup is what lets you use Android emulators and iOS simulators and build the app locally.
A Fabric Native Component starts from a Codegen spec. The docs then tell you to write native platform code for both Android and iOS.
Create and run an app without a framework
npm uninstall -g react-native-cli @react-native-community/cli
npx @react-native-community/cli@latest init AwesomeProject
npm start
npm run androidMore about React Native
Agent Skills for it
- react-native-architecture: Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mob
- react-native-dev: React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performan
- react-native-expert: Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo. Implements navigation hierarchies (tabs, stacks
- react-native-expert: Senior React Native and Expo engineer for building production-ready cross-platform mobile apps. Use when building React Native components, i
- react-native-best-practices: Provides React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations. Applies to ta
Head to head
- React Native vs Expo used together in 130 projects
- React Native vs Capacitor used together in 0 projects
Packages around it
- expo: React Native framework
- react-native-safe-area-context: Safe area insets
- react-native-screens: Native screen containers
- react-native-reanimated: Animations
- react-native-gesture-handler: Native gesture handling
- react: UI library it builds on
Alternatives
React Native This page
Framework and platform for building native iOS and Android apps with React.
Build cross-platform desktop apps with JavaScript, HTML and CSS.
Build cross-platform native apps with JavaScript, HTML and CSS.
Get started
Install it.
npm install react-nativeRules for your agent
## React Native
- For a new app, prefer a framework: the README recommends Expo, created with `npx create-expo-app@latest`.
- Without a framework, first remove any global `react-native-cli` with `npm uninstall -g react-native-cli @react-native-community/cli`, then run `npx @react-native-community/cli@latest init <Name>`.
- Start Metro with `npm start` and leave it running in its own terminal. Run `npm run android` from a second terminal in the project folder.
- Write a Fabric Native Component spec in TypeScript or Flow, and name it `<MODULE_NAME>NativeComponent.{ts|js}`. Codegen uses that suffix to find the spec.
- Add a `codegenConfig` block to `package.json` so Codegen knows where the specs are and what to generate.
- The Fabric Native Component guide targets the New Architecture only. If the Legacy Architecture must also be supported, follow the backwards compatibility guide.
- If iOS dependencies break, run `cd ios`, then `bundle install`, then `bundle exec pod install`.