Description
This is a demo project using RNSurface.
Directory Structure
SampleProject -- RN project SampleApp -- Native project
Environment Setup
- In the
SampleProject/MainProjectdirectory, run npm i @react-native-oh/react-native-harmony@x.x.x to install the dependency and run npm run dev to generate the bundle. - In the
entrydirectory, run ohpm i @rnoh/react-native-openharmony@x.x.x to install the dependency. - Check whether the
oh-modulesfolder is generated in theSampleAppandentrydirectories. - Open
SampleAppin 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.