diff --git a/en/react-native-maps-directions.md b/en/react-native-maps-directions.md index 2d034b79127dff385d350ac66eeb72b4e0fec0dc..78436e646b92fba22c59aa487ae39cd1c0579261 100644 --- a/en/react-native-maps-directions.md +++ b/en/react-native-maps-directions.md @@ -19,22 +19,20 @@ > [!TIP] This library depends on react-native-maps,Can be referred to [react-native-maps documentation](./react-native-maps.md) install -Find the matching version information in the release address of a third-party library and download an applicable .tgz package: [@react-native-oh-tpl/react-native-maps-directions Releases](https://github.com/react-native-oh-library/react-native-maps-directions/releases). +Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-maps-directions Releases](https://github.com/react-native-oh-library/react-native-maps-directions/releases).For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package. Go to the project directory and execute the following instruction: -> [!TIP] Replace the content with the path of the .tgz package at the comment sign (#). - #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-maps-directions@file:# +npm install @react-native-oh-tpl/react-native-maps-directions ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-maps-directions@file:# +yarn add @react-native-oh-tpl/react-native-maps-directions ``` The following code shows the basic use scenario of the repository: diff --git a/zh-cn/react-native-maps-directions.md b/zh-cn/react-native-maps-directions.md index a044090e743a5b7754ed920e3a0b848e37807c02..00de906b3ea52c4d4b4f5b7edc0df446470a13fe 100644 --- a/zh-cn/react-native-maps-directions.md +++ b/zh-cn/react-native-maps-directions.md @@ -19,22 +19,20 @@ > [!TIP] 该库依赖react-native-maps,可参考[react-native-maps文档](./react-native-maps.md)安装 -请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-maps-directions Releases](https://github.com/react-native-oh-library/react-native-maps-directions/releases),并下载适用版本的 tgz 包。 +请到三方库的 Releases 发布地址查看配套的版本信息:[@react-native-oh-tpl/react-native-maps-directions Releases](https://github.com/react-native-oh-library/react-native-maps-directions/releases),并下载适用版本的 tgz 。对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 进入到工程目录并输入以下命令: -> [!TIP] # 处替换为 tgz 包的路径 - #### **npm** ```bash -npm install @react-native-oh-tpl/react-native-maps-directions@file:# +npm install @react-native-oh-tpl/react-native-maps-directions ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-maps-directions@file:# +yarn add @react-native-oh-tpl/react-native-maps-directions ``` 下面的代码展示了这个库的基本使用场景: