Description

This is a demo project showcasing navigation between native and RN pages.

Directory Structure

NavigationProject -- RN project NavigationApp -- Native project

Environment Setup

  1. In the NavigationProject/MainProject directory, run npm run i to install the dependency and run npm run dev to generate the bundle.
  2. In the entry directory, run ohpm i @rnoh/react-native-openharmony to install the dependency.
  3. Check whether the oh-modules folder is generated in the NavigationApp and entry directories.
  4. Open NavigationApp in DevEco Studio and run Sync and Refresh Project.
  5. Click File > Project Structure > Signing Configs, log in and complete the signing.
  6. Click run in the upper right corner to start the project.