# How do I create a React Native app for HarmonyOS? > What RNOH (React Native for OpenHarmony) is, which React Native versions it supports, how to install it, configure the SDK versions, build a HAP, and add third-party libraries. Source: https://ohosify.com/en/blog/react-native-harmonyos-app Published: 2026-10-02 Verified: 2026-10-02 (OpenHarmony 6.1.1 Release, API 24) Author: Ohosify **Short answer:** Use **RNOH** (React Native for OpenHarmony) from the CPF-RN organization on GitCode. Install the `@react-native-oh/react-native-harmony` package for the React Native version you target, set up the SDK versions in the HarmonyOS project, bundle the JavaScript with Metro, and build a HAP with hvigor in DevEco Studio. ## What is RNOH? RNOH is a community framework that lets React Native apps run on HarmonyOS. It integrates with ArkUI and supports the Fabric architecture. The main repository is [CPF-RN/ohos_react_native](https://gitcode.com/CPF-RN/ohos_react_native). The organization is MIT-licensed and developed under the OpenAtom Foundation. Your JavaScript or TypeScript code stays React Native code; the native side is a HarmonyOS project. ## Which versions are supported? | React Native line | Status (from the organization page) | |---|---| | 0.84.x | Current stable. 0.84.3 makes Hermes V1 the default JS engine and requires Node.js 22+ | | 0.77.x | LTS, enhanced new architecture | | 0.72.x | LTS, long-term maintenance | The repository README describes version lines and npm dist-tags such as `0.72-stable`. Check the repository for the exact current list before you start, because it changes between releases. ## What do you need first? - DevEco Studio and the SDK. See [How to install DevEco Studio](/en/blog/install-deveco-studio). - Node.js, at the version in the repository's `.node-version` file. - A device or emulator visible with `hdc`. See the [hdc command guide](/en/blog/hdc-command-guide). ## How do I set up the project? 1. **Install the package** for your React Native line: ```bash npm install @react-native-oh/react-native-harmony@0.72-stable ``` Use the dist-tag or version that matches your React Native version. A tag such as `0.72-stable` follows the latest stable release of that line. 2. **Configure SDK versions** in the HarmonyOS project, as the RNOH docs recommend: ```json { "compatibleSdkVersion": "5.0.0(12)", "targetSdkVersion": "26.0.0" } ``` `compileSdkVersion` must be greater than or equal to `targetSdkVersion`, otherwise compilation fails. Follow the "SDK version configuration guide" in the repository docs for the current values. 3. **Bundle the JavaScript** with Metro, which uses the standard React Native Metro configuration. 4. **Build and sign the HAP** with hvigor. The repository has a build and symbol management guide for this step. For signing basics, see [Your first ArkTS app](/en/blog/first-arkts-app). I could not read the exact project-creation and bundle commands from the public docs pages, so follow the repository's development guide for those steps instead of guessing them. ## How do I add third-party libraries? The [usage-docs](https://gitcode.com/CPF-RN/usage-docs) repository catalogs 200+ ported libraries (UI components, navigation, media, storage, sensors). Three points from it: - Most libraries support **Codegen**. You must run it to generate the bridging code before using them. - Future development is based on the **C-API** architecture only. - If you use the `react_native_openharmony-xxx-release.har` package, you need extra `target_compile_options` settings. Library packages use the `@react-native-oh` namespace, for example `@react-native-oh/react-native-skia`. The usage docs also mention an `@react-native-ohos` prefix, so check each library's README for its exact package name. ## Next steps - [What is ArkTS?](/en/blog/what-is-arkts) - [Your first ArkTS app](/en/blog/first-arkts-app) - [Flutter apps for HarmonyOS](/en/blog/flutter-harmonyos-app) - [OpenHarmony vs HarmonyOS](/en/blog/openharmony-vs-harmonyos)