isWechatInstalled 返回值是undefined
meiqi1992 opened this issue · comments
isWechatInstalled
返回的是一个 Pending 状态的 Promise。
当 Promise 被 Resolved 时,意味着微信已安装,否则未安装并且你应该在这里使用 try...catch
包裹 await
。
isWechatInstalled
returns a pending promise.
When the promise is resolved, it means WeChat is installed on your device. Otherwise, it doesn't and you should wrap the await
with try...catch
here.
好的,谢谢,还有个问题就是我的分享图片有的会比较大,可以做个压缩处理吗?类似这样
https://github.com/little-snow-fox/react-native-wechat-lib/blob/master/ios/RCTWeChat.m#L65
没有问题,我会在下一个版本为这个功能提供支持。
No problem. This feature will be delivered in the next version.
赞👍
感谢你的反馈,我会尽快处理。
Thank you for your feedback. The above will be fixed asap.
https://github.com/Hector-Chong/native-wechat/blob/main/src/hooks.ts
try catch
await
then
任何方式,都是undefined。
请勿关闭该issue。