react-native

reactMIT活跃维护

用 React 写 iOS 和 Android 原生应用的跨平台框架,一套 JS 代码同时跑两端,省去分别开发两套原生 App 的成本。

A framework for building native applications using React

v0.88.1发布于 2026-10-27 17:39 UTC126,889star +20 / 7 天25,487fork同步于 2026-11-10 05:17 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

这个条目还没有人工点评。如果它对你很有用,欢迎到 提交仓库 页写下你的使用经验。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    最近发版

    5 个版本v0.88.1
    1. v0.89.0-rc.00.89.0-rc.0pre-release2026-11-04 · 2026-11-04 13:13 UTC
      查看更新说明

      Breaking

      • Accessibility: AccessibilityState::selected is now std::optional<bool> in C++ props, preserving an unset selected instead of coercing it to false (af4d8eb08a by Calvin Liu)
      • Assets: Remove react-native/assets-registry. Use AssetRegistry from react-native and react-native/asset-utils instead. (56c48ac0eb by @huntie)
      • Babel: Turn off babel/plugin-transform-destructuring plugin (73711b301e by @retyui)
      • C++: Remove deprecated react/renderer/graphics/Geometry.h and react/renderer/graphics/conversions.h; include <React/Graphics.h> or <React/RendererCore.h> instead (1449daad5e by @j-piasecki)
      • CLI: react-native/community-cli-plugin will no longer be auto-detected from react-native. It must now be specified in devDependencies. (b26baaeba0 by @huntie)
      • CLI: Platform registration config for the Community CLI is removed from the react-native package. No breaking change with react-native-community/cli 21.x (required). (be9fbdd0d5 by @huntie)
      • Image: Fix explicit fadeDuration being ignored on newly created Images (98d6795e6d by @bartlomiejbloniarz)
      • JavaScript API: Mark unstable_batchedUpdates as deprecated (f6fc189b8c by @retyui)
      • VirtualizedList: Fix SectionList and VirtualizedSectionList scrollToLocation to account for section headers and sticky headers correctly. (0c35f57447 by @amroaltah)
      Android specific
      • C++: Remove deprecated rncore.h; include FBReactNativeSpec.h and call FBReactNativeSpec_ModuleProvider instead (d63648bac6 by @javache)
      • New Architecture: Remove DefaultNewArchitectureEntryPoint.bridgelessEnabled and the deprecated three-argument load(turboModulesEnabled, fabricEnabled, bridgelessEnabled) overload; bridgeless is always enabled in the New Architecture (9b18b951ea by @christophpurrer)
      • New Architecture: Remove DefaultNewArchitectureEntryPoint.fabricEnabled, turboModulesEnabled, concurrentReactEnabled and isConfigurationValid (ca2e11af51 by @christophpurrer)
      • Text: Add lineBreak and wordBreak props to Text (CSS line-break / word-break) for strict/loose line breaking and phrase-based breaking on Android 13+ (f736393946 by @iray-tno)
      • TurboModules: Libraries that ship pre-generated JNI codegen fail to build until they regenerate it with 0.89's codegen: the JavaTurboModule::invokeJavaMethod overload with a cachedMethodID argument is depre
    2. v0.88.0-rc.60.88.0-rc.6pre-release2026-10-27 · 2026-10-27 17:42 UTC
      查看更新说明

      Hermes V1 dSYMS:

      ReactNativeDependencies dSYMs:

      ReactNative Core dSYMs:


      You can file issues or pick requests against this release here.


      To help you upgrade to this version, you can use the Upgrade Helper ⚛️.


      View the whole changelog in the CHANGELOG.md file.

    3. v0.88.10.88.1最新正式版2026-10-27 · 2026-10-27 17:39 UTC

      Added

      iOS specific
      • SwiftPM: the build stops with a clear error when precompiled plugin frameworks and the Xcode project disagree, and the error says what to run. (a920e5db46 by @chrfalch)

      Changed

      iOS specific
      • Build: Compile React Native's C/C++/Objective-C code with -O2 instead of -Os in Release, and Yoga and glog with -O2 in all builds, to match Android (60c817e925 by @chrfalch)
      • SwiftPM: spm add and spm update write React Native's build settings to ReactNativeSPM/ReactNativeSPM.xcconfig and its build scripts to ReactNativeSPM/Scripts/, so a version bump no longer changes project.pbxproj. A configuration that uses its own xcconfig must now #include the generated file, and a target setting that hides React Native's value must add $(inherited). spm prints the exact fix in both cases. (cd89e98949 by @chrfalch)
      • Text: Text without a background color no longer draws a transparent background (0bd33261d1 by @hryhoriiK97)

      Fixed

      Android specific
      • Text: Fix text measured with the wrong width when fontVariationSettings are re-applied to a reused Paint (96518a8fb9 by @jkadamczyk)
      • Text: Skip empty and fully hidden text decoration ranges (dbd5b3b770 by @Abbondanzo)
      • Text: Fix crash drawing text decoration (underline/strikethrough) when a nested Text's span extends past a numberOfLines-truncated layout (ca8504b1ca by @lazerg)
      iOS specific
      • Image: Image no longer shows
    4. v0.88.00.88.02026-10-15 · 2026-10-15 22:37 UTC
      查看更新说明

      Added

      • C++: Add <React/FeatureFlags.h> umbrella header as the public entry point for react/featureflags (f970054a8a by @j-piasecki)
      • C++: Add <React/RendererBridging.h> umbrella header as the public entry point for react/renderer/bridging (5b680c5f9f by @j-piasecki)
      • C++: Add <React/Timing.h> umbrella header as the public entry point for react/timing (70f172d29f by @j-piasecki)
      • C++: Added missing mutex include in HostTarget.h (3f8f5c216a by @etodanik)
      • EventTarget: Enable the imperative EventTarget API (addEventListener, removeEventListener, dispatchEvent) on native view refs in canary (8480b86820 by @rubennorte)
      • Feature Flags: Add enableImageTransparentTintColor feature flag (c5bd054983 by @coado)
      • JavaScript API: Deprecate 'react-native/Libraries/Core/InitializeCore'. Use 'react-native/setup-env' instead. (554baba159 by @huntie)
      • PlatformColor: Support a lazy raw color fallback for PlatformColor when native tokens fail to resolve (65008fcdd0 by @Abbondanzo)
      • React Native DevTools: Experimental performance screenshots support and Page.captureScreenshot is added to the EXPERIMENTAL channel (4be68ef785 by @huntie)
      • React Native DevTools: Support for inspecting WebSocket events in the Network panel is added to the CANARY channel (713ae6b1b9 by @huntie)
      • React Native DevTools: Users and agents can now capture app screenshots via the Page.captureScreenshot command (00efc0a440 by @huntie)
      • Text: Add object syntax for fontVariationSettings (376b99ff14 by @evankatz14)
      • TypeScript: Add isInstalled() and clearAllLogs() to the LogBox TypeScript declarations (a69badd468 by @Abbondanzo)
      • TypeScript: Add missing strictMode prop to FlatList TypeScript types (3e2403327c by @drhops)
      • TypeScript: Add TypeScript declarations for requestIdleCallback and cancelIdleCallback (c086431a4b by @Critteros)
      • VirtualizedList: Add missing ListItemComponent type to VirtualizedList props ([5306e9229c](https://github.com/react/react-native
    5. v0.88.0-rc.50.88.0-rc.5pre-release2026-10-12 · 2026-10-12 23:40 UTC
      查看更新说明

      This release contains no changes over 0.88.0-rc.4.


      Hermes V1 dSYMS:

      ReactNativeDependencies dSYMs:

      ReactNative Core dSYMs:


      You can file issues or pick requests against this release here.


      To help you upgrade to this version, you can use the Upgrade Helper ⚛️.


      View the whole changelog in the CHANGELOG.md file.

    README 原文

    未翻译

    React Native

    React Native lets you build native apps using React. Written in JavaScript, rendered with native code.

    • Native UI. React Native primitives render to native platform UI, meaning your app uses the same native platform APIs other apps do. Gestures, text scaling, and accessibility behave the way users expect on each OS.
    • React, everywhere. Declarative UI, components, hooks, and Suspense, reused across Android, iOS, and other platforms.
    • Developer Velocity. See local changes in seconds. Changes to JavaScript code are applied with Fast Refresh, without rebuilding the native app.
    • Extend it yourself. Native Modules let you call platform code directly from JavaScript, synchronously and type-safe — or reach for thousands of existing libraries.

    React Native is developed and supported by many companies and individual core contributors. Find out more on the React Foundation website.

    Building your first React Native app

    Follow the Getting Started guide for a new app, or Integration with Existing Apps to adopt React Native incrementally.

    Using a Framework

    We believe that the best way to experience React Native is through a Framework, a toolbox with all the necessary APIs to let you build production ready apps. Expo is a production-grade React Native Framework, with file-based routing, a standard library of native modules, and much more.

    To create a new Expo project, run the following in your terminal:

    npx create-expo-app@latest
    

    Then follow the rest of Expo's getting started guide to start building.

    Without a Framework

    You can also use React Native without a Framework, however we've found that most developers benefit from one — navigation, native dependencies, and platform tooling are problems the ecosystem has already solved. If a Framework doesn't suit your app, follow Getting Started Without a Framework.

    Documentation

    The full documentation for React Native can be found on our website.

    The source for the React Native docs and website is hosted on a separate repository, react/react-native-website.

    Contributing

    The main purpose of this repository is to continue evolving React Native core. We want to make contributing to this project as easy and transparent as possible, and we are grateful to the community for contributing bug fixes and improvements. Read below to learn how you can take part in improving React Native.

    Code of Conduct

    Meta has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

    Contributing Guide

    Read our Contributing Guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React Native.

    Discussions

    Larger discussions and proposals are discussed in react-native-community/discussions-and-proposals.

    React Native releases are discussed in reactwg/react-native-releases.

    License

    React Native is MIT licensed, as found in the LICENSE file.