diff --git a/en/BabylonReactNative.md b/en/BabylonReactNative.md index 5ff90ae6578ccbee74de5504d6dd8248d93a88a2..eed2c294e4e4351477cc711894644448538be7ad 100644 --- a/en/BabylonReactNative.md +++ b/en/BabylonReactNative.md @@ -44,6 +44,15 @@ yarn add @react-native-oh-tpl/babylonjs-react-native yarn add @react-native-oh-tpl/babylonjs-react-native-harmony ``` +#### **If using BabylonReactNative in DevEco Studio** + +```bash +When running git --version in the DevEco Studio terminal, if the Git version cannot be detected, follow these steps: +1.Install Git.(Skip this step if Git is already installed.) +2.Add the Git executable directory to the system Path environment variable.(Skip this step if the Path already contains the Git directory.) +3.Restart your computer to ensure the environment variables take effect in DevEco Studio. +``` + The following code shows the basic use scenario of the repository: diff --git a/zh-cn/BabylonReactNative.md b/zh-cn/BabylonReactNative.md index 8e194eea96100adb0fa1c210ef78eeb71cd30a40..1c0968a953b24eea7af1c9e1df857ee580696cc0 100644 --- a/zh-cn/BabylonReactNative.md +++ b/zh-cn/BabylonReactNative.md @@ -42,6 +42,15 @@ yarn add @react-native-oh-tpl/babylonjs-react-native yarn add @react-native-oh-tpl/babylonjs-react-native-harmony ``` +#### **如果在DevEco Studio里使用BabylonReactNative** + +```bash +在DevEco Studio的终端里执行: git --version,如果查不到git的版本号,依次执行以下步骤: +1.安装git(git已安装,跳过该步骤) +2.在系统环境变量Path里加入git可执行文件路径(Path里已存在git可执行文件路径,跳过该步骤) +3.复位电脑,让环境变量在DevEco Studio里生效 +``` + 下面的代码展示了这个库的基本使用场景: