forked from iVanPan/react-native-qqsdk
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
27 lines (25 loc) · 1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict'
import {
NativeModules,
NativeEventEmitter
} from 'react-native';
const {QQSDK} = NativeModules;
export const isQQClientInstalled = QQSDK.checkClientInstalled;
export const ssoLogin = QQSDK.ssoLogin;
export const logout = QQSDK.logout;
export const shareScene = {'QQ': QQSDK.QQ, 'QQZone': QQSDK.QQZone, 'Favorite': QQSDK.Favorite};
export function shareText(text,shareScene) {
return QQSDK.shareText(text,shareScene);
}
export function shareImage(image,title,description,shareScene) {
return QQSDK.shareImage(image,title,description,shareScene)
}
export function shareNews(url,image,title,description,shareScene) {
return QQSDK.shareNews(url,image,title,description,shareScene);
}
export function shareAudio(url,flashUrl,image,title,description,shareScene) {
return QQSDK.shareAudio(url,flashUrl,image,title,description,shareScene);
}
// export function shareVideo(url,flashUrl,image,title,description,shareScene) {
// return QQSDK.shareVideo(url,flashUrl,image,title,description,shareScene);
// }