We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5afc8b commit 4e20fb2Copy full SHA for 4e20fb2
ios/RCTWeChat.m
@@ -237,7 +237,8 @@ - (void)shareToWeixinWithData:(NSDictionary *)aData
237
} else if ([type isEqualToString:RCTWXShareTypeImageUrl] ||
238
[type isEqualToString:RCTWXShareTypeImageFile] ||
239
[type isEqualToString:RCTWXShareTypeImageResource]) {
240
- NSURLRequest *imageRequest = [NSURLRequest requestWithURL:aData[RCTWXShareImageUrl]];
+ NSURL *url = [NSURL URLWithString:aData[RCTWXShareImageUrl]];
241
+ NSURLRequest *imageRequest = [NSURLRequest requestWithURL:url];
242
[self.bridge.imageLoader loadImageWithURLRequest:imageRequest callback:^(NSError *error, UIImage *image) {
243
if (image == nil){
244
callback(@[@"fail to load image resource"]);
0 commit comments