ivanpan / react-native-qqsdk Goto Github PK
View Code? Open in Web Editor NEWA React Native wrapper around the Tencent QQ SDK for Android and iOS. Provides access to QQ ssoLogin, QQ Sharing, QQZone Sharing etc
License: MIT License
A React Native wrapper around the Tencent QQ SDK for Android and iOS. Provides access to QQ ssoLogin, QQ Sharing, QQZone Sharing etc
License: MIT License
通过pod 导入后 出现这个问题
`
private File getOutputMediaFile(String ext) {
ext = ext != null ? ext : "jpg";
File mediaStorageDir = getCurrentActivity().getExternalCacheDir();
if (mediaStorageDir == null) {
mediaStorageDir = getCurrentActivity().getCacheDir();
}
if (mediaStorageDir == null || (!mediaStorageDir.exists() && !mediaStorageDir.mkdirs())) {
return null;
}
String timeStamp = new SimpleDateFormat("ddMMyyyy_HHmm").format(new Date());
File mediaFile;
String mImageName = "RN_" + timeStamp + "." + ext;
mediaFile = new File(mediaStorageDir.getPath() + File.separator + mImageName);
Log.d("path is", mediaFile.getPath());
return mediaFile;
}
`
`
FATAL EXCEPTION: mqt_native_modules
(link to log)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
03-10 12:49:00.577 2919 3008 E AndroidRuntime: Process: com.doquestion, PID: 2919
03-10 12:49:00.577 2919 3008 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at me.vanpan.rctqqsdk.QQSDK.getOutputMediaFile(QQSDK.java:702)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at me.vanpan.rctqqsdk.QQSDK.getOutputMediaFile(QQSDK.java:696)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at me.vanpan.rctqqsdk.QQSDK.saveBitmapToFile(QQSDK.java:643)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at me.vanpan.rctqqsdk.QQSDK.processImage(QQSDK.java:512)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at me.vanpan.rctqqsdk.QQSDK.shareImage(QQSDK.java:224)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:374)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:162)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:194)
03-10 12:49:00.577 2919 3008 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818)
`
这是我修改后的获取缓存的方法,老的方法在某些没有外存的手机上可能导致CARSH
await AsyncStorage.getItem
初始化的时候如果有用到AsyncStorage会卡 20s 以上,个别机型甚至要数分钟
Lots of spam files install while "uninstall" this module.
Go to hell and stop hurting coders.
The following packages use deprecated "rnpm" config that will stop working from next release:
qqsdk实装上以后,ios端登录没问题,然后安卓报错了,登录授权失败(错误码:110404)
react-native-qqsdk/android/build.gradle里的QQ_APP_ID我设置过了,不知道为什么报这个错
RT。
在Android
端,QQ分享,type为news
,若image = null
或者 image = ''
就会报错
Hello, I am trying to use the resolveAssetSource function in my react native project. I've newly installed everything, including xcode. I followed the instructions in your README file but I'm running into issues.
#import <React/RCTLinkingManager.h>
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
return [RCTLinkingManager application:application openURL:url
sourceApplication:sourceApplication annotation:annotation];
}
But now xcode throws error after error, recommends fixes that only make more errors. It doesn't like the - (BOOL)
. I'm not entirely sure what I am doing here. This file already has code in it, can I just plop this code at the bottom of the file, can you add some specificity to this?
I'd much prefer a simpler solution, but this seems to be necessary. Your work is greatly appreciated!
Thank you
支持微云读取和上传文件吗
分享到QQ,返回app以后, 一定概率性的会使app重启
这是什么原因呢?
我看了所有React 这个打头的好像都找不到? 不懂这块的开发, 按照步骤一步步配置下来的. 不知道为何会少?
QQ分享中 分享的内容下面会带着app的图标和名字 点击这个图标和名字的区域 会返回我们的应用,但是这样会使我们的程序重新启动,而不是回到原本的界面
小米6 上测试的
小米6 mui9 分享吊起后 按取消 多点几次 会崩溃
qq分享到空间后,没有回调,并且报了这个错误:
05-22 10:50:19.692 22834 25543 W ReactNativeJS: Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See facebook/react-native#12981 for more info.
05-22 10:50:19.692 22834 25543 W ReactNativeJS: (Saw setTimeout with duration 120000ms)
安卓设备分享至QQ,分享失败且弹框“应用未上线(错误码9001010)”
版本信息:
react-native:0.48.4
react:16.0.0-alpha.12
在之前都是使用正常,近期有反馈分享失败案例,求助.
请问这和什么有关系 哪里没有配置好吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.