diff --git a/ios/RCTWeChatAPI/RCTWeChatAPI.m b/ios/RCTWeChatAPI/RCTWeChatAPI.m index 720a1ba..3a5427e 100644 --- a/ios/RCTWeChatAPI/RCTWeChatAPI.m +++ b/ios/RCTWeChatAPI/RCTWeChatAPI.m @@ -102,12 +102,14 @@ - (void)dealloc :(RCTResponseSenderBlock)callback) { [self shareToWeixinWithData:data scene:WXSceneTimeline callback:callback]; + callback(@[[NSNull null]]); } RCT_EXPORT_METHOD(shareToSession:(NSDictionary *)data :(RCTResponseSenderBlock)callback) { [self shareToWeixinWithData:data scene:WXSceneSession callback:callback]; + callback(@[[NSNull null]]); } RCT_EXPORT_METHOD(pay:(NSDictionary *)data