reactnativecn/react-native-qq

shareQQ 报错

Opened this issue · 9 comments

Exception '-[__NSCFString _setProperty:forKey:]: unrecognized selector sent to instance 0x175468f40' was thrown while invoking shareToQQ on target RCTQQAPI with params (
{
description = "\U4f18\U552e\U540e\U63a8\U8350\U6709\U5956\U6d3b\U52a8";
imageUrl = "http://www.ush360.com/home/images/logo-80.png";
title = "\U63a8\U8350\U6709\U5956";
type = news;
webpageUrl = "http://beta-app.ush360.com/home/register.html?referee=18602122876";
},
48,
49
)

只要加了 imageUrl 就会出现上面的错误

请问你上面这个问题是怎么解决的呢,在线求

@cashely , 没有解决,只是没有传递 imageUrl 这个参数

在模拟器上报错undefined is not an object(evaluating 'QQAPI.login'),请问你遇到过吗

没有,你这是没有安装好吧

在 2016年11月11日,10:14,cashely <notifications@github.commailto:notifications@github.com> 写道:

在模拟器上报错undefined is not an object(evaluating 'QQAPI.login'),请问你遇到过吗


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com//issues/32#issuecomment-259863697, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFoORqBd1OJ1doFYhysSxKAqbmS-09t9ks5q88-cgaJpZM4KrAtx.

没有安装错啊,因为我在真机上是没有问题的,真机上是不能带imageUrl,并且我在安卓上面测试都是没反应的,能分享一下你的方法么

你的 QQAPI 是 undefined ,从这里入手找找看吧

在 2016年11月11日,12:32,cashely <notifications@github.commailto:notifications@github.com> 写道:

没有安装错啊,因为我在真机上是没有问题的,真机上是不能带imageUrl,并且我在安卓上面测试都是没反应的,能分享一下你的方法么


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com//issues/32#issuecomment-259878931, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFoORvYtvdiHe2Xm8JNQo_T8sZFmLkgpks5q8-_BgaJpZM4KrAtx.

遇到同样的问题 求解决方案

应该是分享的图片太大导致的。把 imageUrl 去掉,或使用小图吧。