# NativeArkTSFunctionCallDemo **Repository Path**: bianbu-oh/native-ark-tsfunction-call-demo ## Basic Information - **Project Name**: NativeArkTSFunctionCallDemo - **Description**: NativeArkTSFunctionCallDemo - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-12 - **Last Updated**: 2025-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Native Cpp calls ArkTS function by name searching ## Overview This demo create a Native api(print, see entry/src/main/cpp/napi_init.cpp) mimicking the original add function. But this Native api call a custom ArkTS function (myETSFunction, see entry/src/main/ets/entryability/EntryAbility.ets) by name searching. UI -> NAPI -> ArkTS func ## How to use ### Step1: Clone this project `git clone https://gitee.com/bianbu-oh/native-ark-tsfunction-call-demo.git` ### Step2: Open this project with **Deveco Studio 5** ### Step3: Migrate this project to your environment 1. Modify the SDK path. 2. Modify the node path. 3. Use Migrate Assistant to auto-upgrade the project structure and configuration. ### Step4: Signing File - Project Structure - Signing Configs 1. Uncheck Support HarmonyOS. 2. Check Automatically generate signature. 3. Click Apply and OK. ### Step5: Build and Run Connect Muse series device to your workstation, keep the device awake, device name will show in the top-right box of Deveco Studio 5. Click the triangle(Run 'entry'), the demo app will run on your device. Click the 'Hello World' on screen, it will turn into 'Welcome' and do logging.