Description
This is a demo project showcasing navigation between native and RN pages.
Directory Structure
NavigationProject -- RN project NavigationApp -- Native project
Environment Setup
- In the
NavigationProject/MainProjectdirectory, run npm run i to install the dependency and run npm run dev to generate the bundle. - In the
entrydirectory, run ohpm i @rnoh/react-native-openharmony to install the dependency. - Check whether the
oh-modulesfolder is generated in theNavigationAppandentrydirectories. - Open
NavigationAppin DevEco Studio and run Sync and Refresh Project. - Click File > Project Structure > Signing Configs, log in and complete the signing.
- Click run in the upper right corner to start the project.