From 6b93c5b0e9a4b6fba1fb0e3f78a93b56e563dc89 Mon Sep 17 00:00:00 2001 From: sunshinezjb Date: Thu, 26 Dec 2024 16:55:10 +0800 Subject: [PATCH 1/4] =?UTF-8?q?docs:=20[issues:=20#IBDYPN]=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-alipay,react-native-audio-toolkits?= =?UTF-8?q?=E7=AD=89=E5=BA=93=E7=9A=84=E8=8B=B1=E6=96=87=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-alipay.md | 38 +++++------ en/react-native-audio-toolkit.md | 102 +++++++++++++++--------------- en/react-native-config.md | 44 ++++++------- en/react-native-file-selector.md | 81 ++++++++++++------------ en/react-native-image-rotate.md | 8 +-- en/react-native-thumbnail.md | 26 ++++---- en/react-native-user-agent.md | 56 ++++++++-------- en/react-native-video-controls.md | 10 +-- 8 files changed, 182 insertions(+), 183 deletions(-) diff --git a/en/react-native-alipay.md b/en/react-native-alipay.md index 46870ffa..4ff6ebde 100644 --- a/en/react-native-alipay.md +++ b/en/react-native-alipay.md @@ -16,22 +16,22 @@ ## Installation and Usage -Find the matching version information in the release address of a third-party library: [@react-native-oh-tpl/react-native-alipay Releases](https://github.com/react-native-oh-library/react-native-alipay/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. +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-alipay Releases](https://github.com/react-native-oh-library/react-native-alipay/releases). 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-alipay +npm install @react-native-oh-tpl/react-native-alipay@file:# ``` #### **yarn** ```bash -yarn add @react-native-oh-tpl/react-native-alipay +yarn add @react-native-oh-tpl/react-native-alipay@file:# ``` The following code shows the basic use scenario of the repository: @@ -47,7 +47,7 @@ import { AFAuthServiceResponse, } from '@alipay/afservicesdk'; function App(): React.JSX.Element { const urlStr: string = 'https://authweb.alipay.com/auth?auth_type=PURE_OAUTH_SDK&app_id=2016051801417322&scope=auth_user&state=init'; - const bundleName: string = "com.example.harmony"; // 包名 + const bundleName: string = "com.example.harmony"; // Bundle name const moduleName: string = "entry"; const abilityName: string = "EntryAbility"; @@ -58,7 +58,7 @@ function App(): React.JSX.Element {