HarmonyOS 安装@react-native-oh-tpl/react-native-reanimated三方依赖时提示找不到/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp?
HarmonyOS 安装@react-native-oh-tpl/react-native-reanimated三方依赖时提示找不到/react-native-reanimated/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp?
解决方案
Cannot find source file属于没有找到cpp文件,AnimatedSensorModule.cpp是中间生成的文件。参考文档步骤:
1、引入原生端代码;
2、配置 CMakeLists 和引入 ReanimatedPackage;
3、在 ArkTs 侧引入 ReanimatedPackage;
4、运行该库依赖react-native-harmony: 0.72.16以上的版本,依赖的版本查看release info。