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
- Run npm pack in
third-party-library-sampleto generate a .tgz file. - 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
ReactProjectto install dependencies; - Modify the
@rnoh/hvigor-plugindependency path ofNativeProject/hvigor/hvigor-config.json5; - Open
NativeProjectin DevEco Studio and run Sync and Refresh Project. - Click File > Project Structure > Signing Configs, log in and complete the signing.
- Run npm start in
ReactProjectto start Metro. - Click run in the upper right corner to start the project.