diff --git a/en/react-native-graph.md b/en/react-native-graph.md index d3a522eaacfdfebb603a9319b3709299ec690406..fa9fce2d3297eb8c253294c50eb45eebb93a9bec 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 5ae2c5a8f063402b95b561b05f62ecc69c3567e1..e9f23fbf0c1727689463b92e3c7136a1a42806ff 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 工程中引入过该库,则无需再次引入,可跳过本章节步骤,直接使用。