From 6c8bf16586794ada3e6219ef674322a6536bad76 Mon Sep 17 00:00:00 2001 From: ywp7913 Date: Mon, 19 May 2025 20:41:11 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IC4TPB]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-wechat-lib=20README=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ywp7913 --- en/react-native-wechat-lib.md | 34 ++++++++++++++++---------------- zh-cn/react-native-wechat-lib.md | 22 ++++++++++----------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/en/react-native-wechat-lib.md b/en/react-native-wechat-lib.md index 3e158fda..8c12fe79 100644 --- a/en/react-native-wechat-lib.md +++ b/en/react-native-wechat-lib.md @@ -343,21 +343,21 @@ Check the release version information in the release address of the third-party | --------------------------------------------- | ------------------ | -------- | -------- | ----------- | ----------------- | | registerApp(appid) | register | Function | no | Android/iOS | yes | | isWXAppInstalled() | Determine whether WeChat is installed | Function | no | Android/iOS | yes | -| isWXAppSupportApi() | Check support | Function | no | Android/iOS | no | -| getApiVersion() | Get API version number | Function | no | Android/iOS | no | -| openWXApp() | Open WeChat | Function | no | Android/iOS | yes | -| sendAuthRequest([scope[, state]]) | WeChat authorized login | Function | no | Android/iOS | yes | -| shareText(ShareTextMetadata) | Share/Collect Text | Function | no | Android/iOS | partially | -| shareImage(ShareImageMetadata) | Share Image | Function | no | Android/iOS | partially | -| shareLocalImage(ShareImageMetadata) | Share LocalImage | Function | no | Android/iOS | partially | -| shareFile(ShareFileMetadata) | Share File | Function | no | Android/iOS | no | -| shareMusic(ShareMusicMetadata) | Share Music | Function | no | Android/iOS | no | -| shareVideo(ShareVideoMetadata) | Share Video | Function | no | Android/iOS | no | -| shareWebpage (ShareWebpageMetadata) | Share Webpage | Function | no | Android/iOS | no | -| shareMiniProgram(ShareMiniProgramMetadata) | Share MiniProgram | Function | no | Android/iOS | partially | -| launchMiniProgram (LaunchMiniProgramMetadata) | Launch MiniProgram | Function | no | Android/iOS | yes | -| chooseInvoice (ChooseInvoice) | Select invoice | Function | no | Android/iOS | no | -| pay(payload) | pay | Function | no | Android/iOS | yes | +| isWXAppSupportApi() | Check support | Function | no | Android/iOS | no | +| getApiVersion() | Get API version number | Function | no | Android/iOS | no | +| openWXApp() | Open WeChat | Function | no | Android/iOS | yes | +| sendAuthRequest([scope[, state]]) | WeChat authorized login| Function | no | Android/iOS | yes | +| shareText(ShareTextMetadata) | Share/Collect Text | Function | no | Android/iOS | partially(Session、Timeline) | +| shareImage(ShareImageMetadata) | Share Image | Function | no | Android/iOS | partially(Session、Timeline) | +| shareLocalImage(ShareImageMetadata) | Share LocalImage | Function | no | Android/iOS | partially(Session、Timeline) | +| shareFile(ShareFileMetadata) | Share File | Function | no | Android/iOS | partially(Session) | +| shareMusic(ShareMusicMetadata) | Share Music | Function | no | Android/iOS | no | +| shareVideo(ShareVideoMetadata) | Share Video | Function | no | Android/iOS | partially(Session) | +| shareWebpage (ShareWebpageMetadata) | Share Webpage | Function | no | Android/iOS | partially(Session) | +| shareMiniProgram(ShareMiniProgramMetadata) | Share MiniProgram | Function | no | Android/iOS | partially(Session) | +| launchMiniProgram (LaunchMiniProgramMetadata) | Launch MiniProgram | Function | no | Android/iOS | yes | +| chooseInvoice (ChooseInvoice) | Select invoice | Function | no | Android/iOS | no | +| pay(payload) | pay | Function | no | Android/iOS | yes | | subscribeMessage(SubscribeMessageMetadata) | One-time subscription to messages | Function | no | Android/iOS | no | @@ -365,8 +365,8 @@ One-time subscription to messages | Function | no | Android/iOS | no ## Others -- ShareText、ShareImage、ShareLocalImage、ShareMiniProgram: Only sharing is supported, collection is not supported, because the WeChat Open SDK currently does not support collection on the HarmonyOS platform. -- isWXAppSupportApi、getApiVersion、ShareFile、ShareMusic、ShareVideo、ShareWebpage、ChooseInvoice、subscribeMessage. These interfaces are currently not supported by HarmonyOS WeChat Open SDK. +- ShareText、ShareImage、ShareLocalImage、ShareMiniProgram、ShareFile、ShareVideo、ShareWebpage: Only sharing is supported, collection is not supported, because the WeChat Open SDK currently does not support collection on the HarmonyOS platform. +- isWXAppSupportApi、getApiVersion、ShareMusic、ChooseInvoice、subscribeMessage. These interfaces are currently not supported by HarmonyOS WeChat Open SDK. ## License diff --git a/zh-cn/react-native-wechat-lib.md b/zh-cn/react-native-wechat-lib.md index 95fc113d..d991c308 100644 --- a/zh-cn/react-native-wechat-lib.md +++ b/zh-cn/react-native-wechat-lib.md @@ -350,25 +350,25 @@ ohpm install | getApiVersion() | 获取 API 版本号 | Function | no | Android/iOS | no | | openWXApp() | 打开微信 | Function | no | Android/iOS | yes | | sendAuthRequest([scope[, state]]) | 微信授权登录 | Function | no | Android/iOS | yes | -| shareText(ShareTextMetadata) | 分享/收藏 文本 | Function | no | Android/iOS | partially | -| shareImage(ShareImageMetadata) | 分享/收藏 图片 | Function | no | Android/iOS | partially | -| shareLocalImage(ShareImageMetadata) | 分享/收藏 本地图片 | Function | no | Android/iOS | partially | -| shareFile(ShareFileMetadata) | 分享文件 | Function | no | Android/iOS | no | -| shareMusic(ShareMusicMetadata) | 分享音频 | Function | no | Android/iOS | no | -| shareVideo(ShareVideoMetadata) | 分享视频 | Function | no | Android/iOS | no | -| shareWebpage (ShareWebpageMetadata) | 分享网页 | Function | no | Android/iOS | no | -| shareMiniProgram(ShareMiniProgramMetadata) | 分享小程序 | Function | no | Android/iOS | partially | +| shareText(ShareTextMetadata) | 分享/收藏 文本 | Function | no | Android/iOS | partially(Session、Timeline) | +| shareImage(ShareImageMetadata) | 分享/收藏 图片 | Function | no | Android/iOS | partially(Session、Timeline) | +| shareLocalImage(ShareImageMetadata) | 分享/收藏 本地图片 | Function | no | Android/iOS | partially(Session、Timeline) | +| shareFile(ShareFileMetadata) | 分享文件 | Function | no | Android/iOS | partially(Session) | +| shareMusic(ShareMusicMetadata) | 分享音频 | Function | no | Android/iOS | no | +| shareVideo(ShareVideoMetadata) | 分享视频 | Function | no | Android/iOS | partially(Session) | +| shareWebpage (ShareWebpageMetadata) | 分享网页 | Function | no | Android/iOS | partially(Session) | +| shareMiniProgram(ShareMiniProgramMetadata) | 分享小程序 | Function | no | Android/iOS | partially(Session) | | launchMiniProgram (LaunchMiniProgramMetadata) | 跳到小程序 | Function | no | Android/iOS | yes | | chooseInvoice (ChooseInvoice) | 选择发票 | Function | no | Android/iOS | no | | pay(payload) | 支付 | Function | no | Android/iOS | yes | -| subscribeMessage(SubscribeMessageMetadata) | 一次性订阅消息 | Function | no | Android/iOS | no | +| subscribeMessage(SubscribeMessageMetadata) | 一次性订阅消息 | Function | no | Android/iOS | no | ## 遗留问题 ## 其他 -- ShareText、ShareImage、ShareLocalImage、ShareMiniProgram 只支持分享,不支持收藏,原因为目前微信 Open SDK 还不支持 HarmonyOS 平台的收藏 -- isWXAppSupportApi、getApiVersion、ShareFile、ShareMusic、ShareVideo、ShareWebpage、ChooseInvoice、subscribeMessage 这些接口目前在 HarmonyOS 微信 Open SDK 还不支持 +- ShareText、ShareImage、ShareLocalImage、ShareMiniProgram、ShareFile、ShareVideo、ShareWebpage 只支持分享,不支持收藏,原因为目前微信 Open SDK 还不支持 HarmonyOS 平台的收藏 +- isWXAppSupportApi、getApiVersion、ShareMusic、ChooseInvoice、subscribeMessage 这些接口目前在 HarmonyOS 微信 Open SDK 还不支持 ## 开源协议 -- Gitee