Giter Site home page Giter Site logo

ivanpan / react-native-qqsdk Goto Github PK

View Code? Open in Web Editor NEW
100.0 100.0 30.0 12.66 MB

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

JavaScript 10.02% Objective-C 67.23% HTML 2.74% Java 19.43% Ruby 0.59%
qq qqzone react-native share sso-login tencent

react-native-qqsdk's People

Contributors

dependabot[bot] avatar erichua23 avatar greedbell avatar ivanpan avatar magicismight avatar perqin avatar wanxger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-qqsdk's Issues

获取外部缓存目录可能导致应用崩溃

`
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

react-native 0.60+不支持

The following packages use deprecated "rnpm" config that will stop working from next release:

  • react-native-qqsdk: https://github.com/iVanPan/react-native-qqsdk
    Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
    errorSyntaxError: Invalid regular expression: /(.\fixtures\.|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\tests\.)$/: Unterminated character class
    Invalid regular expression: /(.\fixtures\.|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\tests\.)$/: Unterminated character class. at new RegExp ()Run CLI with
    --verbose at blacklist (D:\egame_android\node_modules\metro-config\src\defaults\blacklist.js:34:10)

安卓端qq登录报错(110404)

qqsdk实装上以后,ios端登录没问题,然后安卓报错了,登录授权失败(错误码:110404)
react-native-qqsdk/android/build.gradle里的QQ_APP_ID我设置过了,不知道为什么报这个错

Readme iOS manual setup contains bad code

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.

  1. In step #5, libstdc++.tbd does not exist. Is this required? What do I do?
  2. Step #8 is not clear. "add LSApplicationQueriesSchemes For QQ SDK". So it's not an option that exists already, but something I must add, as a type array, and then populate it with all the options listed in the image?
  3. Step #9 says "add following code to your AppDelegate.m" Googled, found this: https://stackoverflow.com/questions/46787801/cant-find-appdelegate-m-in-xcode. So I added my code to AppDelegate.h:
#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

React/RCTLinkingManager.h file not found

这是什么原因呢?

我看了所有React 这个打头的好像都找不到? 不懂这块的开发, 按照步骤一步步配置下来的. 不知道为何会少?

QQ.shareNews分享后,没有回调

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)

Can it support iOS 8.0?

我发现 iOS deployment target 是 10.1,这样无法支持低版本的 iOS 系统:
2017-03-13 2 27 38
2017-03-13 2 34 25
我想请问这个库能不能支持 iOS 8.0?如果支持的话,我把iOS Deployment Target直接改成 8.0 是否就可以了?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.