From 318a6cd4766b8f9b4e8bfc4e5f9d4f80a7fbcb14 Mon Sep 17 00:00:00 2001 From: dingchenjie <000062268@hoperun.com> Date: Wed, 10 Dec 2025 17:04:46 +0800 Subject: [PATCH] docs: update react-native-graph Signed-off-by: dingchenjie <000062268@hoperun.com> --- en/react-native-graph.md | 9 +++++++++ zh-cn/react-native-graph.md | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/en/react-native-graph.md b/en/react-native-graph.md index d3a522eaa..fa9fce2d3 100644 --- a/en/react-native-graph.md +++ b/en/react-native-graph.md @@ -113,6 +113,15 @@ const styles = StyleSheet.create({ }) ``` +### Config CMakeLists + +Open `entry/src/main/cpp/CMakeLists.txt`, add: + +```diff +project(rnapp) ++ cmake_minimum_required(VERSION 3.5) +set(CMAKE_SKIP_BUILD_RPATH TRUE) + ## Link The HarmonyOS implementation of this library depends on the native code of react-native-reanimated, react-native-gesture-handler, and react-native-skia. If these libraries have already been introduced in your HarmonyOS project, you do not need to introduce them again and can skip this section to start using directly. diff --git a/zh-cn/react-native-graph.md b/zh-cn/react-native-graph.md index 5ae2c5a8f..e9f23fbf0 100644 --- a/zh-cn/react-native-graph.md +++ b/zh-cn/react-native-graph.md @@ -114,6 +114,16 @@ const styles = StyleSheet.create({ }, }) ``` + +### 配置 CMakeLists + +打开 `entry/src/main/cpp/CMakeLists.txt`,添加: + +```diff +project(rnapp) ++ cmake_minimum_required(VERSION 3.5) +set(CMAKE_SKIP_BUILD_RPATH TRUE) + ## Link 本库 HarmonyOS 侧实现依赖react-native-reanimated , react-native-gesture-handler , react-native-skia 的原生端代码,如已在 HarmonyOS 工程中引入过该库,则无需再次引入,可跳过本章节步骤,直接使用。 -- Gitee