Description
This is a demo project that uses FrameNode to preload bundles.
Directory Structure
GenerateBundle -- RN project FrameNodeSampleApp -- Native project
Environment Setup
- In the
GenerateBundledirectory, run npm i @react-native-oh/react-native-harmony@0.84.1 to install the dependency and run npm run dev to generate the bundle. - In the
entrydirectory, run ohpm i to install the dependency. - Check whether the
oh-modulesfolder is generated in theFrameNodeSampleAppandentrydirectories. - Open
FrameNodeSampleAppin 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.