mirror of
https://github.com/little-snow-fox/react-native-wechat-lib.git
synced 2025-12-06 15:26:49 +08:00
fix 修复小程序跳回APP的事件返回到JS层时type参数缺失的问题
This commit is contained in:
parent
bdfaa21eb5
commit
d2da2667e3
@ -832,7 +832,9 @@ public class WeChatModule extends ReactContextBaseJavaModule implements IWXAPIEv
|
||||
WXLaunchMiniProgram.Resp resp = (WXLaunchMiniProgram.Resp) baseResp;
|
||||
// 对应JsApi navigateBackApplication中的extraData字段数据
|
||||
String extraData = resp.extMsg;
|
||||
map.putString("type", "WXLaunchMiniProgramReq.Resp");
|
||||
map.putString("extraData", extraData);
|
||||
map.putString("extMsg", extraData);
|
||||
}
|
||||
|
||||
this.getReactApplicationContext()
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-wechat-lib",
|
||||
"version": "1.1.7",
|
||||
"version": "1.1.8",
|
||||
"description": "react-native library for wechat app. 支持分享和拉起小程序。",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user