Description

This is the demo project for RNOH Autolinking.

Directory Structure

AutolinkingSample
├── NativeProject harmony工程
├── react-native-oh RNOH前端及手脚架
├── ReactProject 前端工程
├── screenshots 效果图
├── third-party-library-sample RN三方件示例
└── README.md

Environment Setup

  1. Run npm pack in third-party-library-sample to generate a .tgz file.
  2. Run npm i @react-native-oh/react-native-harmony@x.x.x or yarn add @react-native-oh/react-native-harmony@x.x.x in ReactProject to install dependencies;
  3. Modify the @rnoh/hvigor-plugin dependency path of NativeProject/hvigor/hvigor-config.json5
  4. Open NativeProject in DevEco Studio and run Sync and Refresh Project.
  5. Click File > Project Structure > Signing Configs, log in and complete the signing.
  6. Run npm start in ReactProject to start Metro.
  7. Click run in the upper right corner to start the project.