<commit_before># react-native-qqsdk
[![npm](https://img.shields.io/npm/v/react-native-qqsdk.svg)](https://www.npmjs.com/package/react-native-qqsdk)
[![npm](https://img.shields.io/npm/dm/react-native-qqsdk.svg)](https://www.npmjs.com/package/react-native-qqsdk)
[![platform](https://img.shields.io/badge/platform-iOS%2FAndroid-lightgrey.svg?style=flat)](https://github.com/iVanPan/react-native-qqsdk)
[![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat)](https://github.com/iVanPan/react-native-qqsdk/blob/master/LICENSE)


A React Native wrapper around the Tencent QQ SDK for Android and iOS. Provides access to QQ ssoLogin, QQ Sharing, QQ Zone Sharing etc.


## Table of Contents

- [Feature](#feature)
- [Installation](#installation)
  - [RNPM](#rnpm)
  - [CocoaPods](#cocoapods)
  - [Manual](#manual)
    - [iOS Setup](#ios-setup)
    - [Android Setup](#android-setup)
- [Documentation](#documentation)     
  - [Support API](#support-api)
  - [Error Code](#error-code)
  - [Image](#image)  
  - [Usage](#usage)
    - [checkClientInstalled](#checkclientinstalled)
    - [ssoLogin](#ssologin)
    - [logout](#logout)
    - [shareText](#sharetext)
    - [shareImage](#shareimage)
    - [shareNews](#sharenews)
    - [shareAudio](#shareaudio)
    - [getUserInfo](#getuserinfo)
- [About SDK](#about-sdk) 
- [Contributing](#contributing) 
- [License](#license) 

  

## Feature
1. QQ SSO Login
2. QQ Logout 
3. QQ Share 
4. QZone Share
5. QQ Favorites
6. checkClientInstalled   

## Installation
```shell
npm install --save react-native-qqsdk@latest
```
### RNPM
```
 react-native link react-native-qqsdk
```
### CocoaPods
1. Install package from npm
```shell
npm install --save react-native-qqsdk@latest
```
2. Create a Podfile
3. Add pod in Podfile something similar to this:
```shell
pod 'React', :path => '../node_modules/react-native', :subspecs => [
  'Core',
  'RCTText',
  'RCTNetwork',
  'RCTWebSocket', # needed for debugging
  # Add any other subspecs you want to use in your project
]
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod "react-native-qqsdk", :path => "../node_modules/react-native-qqsdk"
```
4. Pod install
5. Follow step 7,8,9 in iOS Setup

### Manual
```shell
npm install --save react-native-qqsdk@latest
```
#### iOS Setup

1. Open your app's Xcode project<commit_msg>update CocoaPods usage for RN 0.45.0<commit_after># react-native-qqsdk
[![npm](https://img.shields.io/npm/v/react-native-qqsdk.svg)](https://www.npmjs.com/package/react-native-qqsdk)
[![npm](https://img.shields.io/npm/dm/react-native-qqsdk.svg)](https://www.npmjs.com/package/react-native-qqsdk)
[![platform](https://img.shields.io/badge/platform-iOS%2FAndroid-lightgrey.svg?style=flat)](https://github.com/iVanPan/react-native-qqsdk)
[![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat)](https://github.com/iVanPan/react-native-qqsdk/blob/master/LICENSE)


A React Native wrapper around the Tencent QQ SDK for Android and iOS. Provides access to QQ ssoLogin, QQ Sharing, QQ Zone Sharing etc.


## Table of Contents

- [Feature](#feature)
- [Installation](#installation)
  - [RNPM](#rnpm)
  - [CocoaPods](#cocoapods)
  - [Manual](#manual)
    - [iOS Setup](#ios-setup)
    - [Android Setup](#android-setup)
- [Documentation](#documentation)     
  - [Support API](#support-api)
  - [Error Code](#error-code)
  - [Image](#image)  
  - [Usage](#usage)
    - [checkClientInstalled](#checkclientinstalled)
    - [ssoLogin](#ssologin)
    - [logout](#logout)
    - [shareText](#sharetext)
    - [shareImage](#shareimage)
    - [shareNews](#sharenews)
    - [shareAudio](#shareaudio)
    - [getUserInfo](#getuserinfo)
- [About SDK](#about-sdk) 
- [Contributing](#contributing) 
- [License](#license) 

  

## Feature
1. QQ SSO Login
2. QQ Logout 
3. QQ Share 
4. QZone Share
5. QQ Favorites
6. checkClientInstalled   

## Installation
```shell
npm install --save react-native-qqsdk@latest
```
### RNPM
```
 react-native link react-native-qqsdk
```
### CocoaPods
1. Install package from npm
```shell
npm install --save react-native-qqsdk@latest
```
2. Create a Podfile
3. Add pod in Podfile something similar to this:
```shell
pod 'React', :path => '../node_modules/react-native', :subspecs => [
  'Core',
  'CxxBridge',
  'RCTText',
  'RCTNetwork',
  'RCTImage',
  'RCTWebSocket', # needed for debugging
   # Add any other subspecs you want to use in your project
  'DevSupport'
]
pod "Yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod "react-native-qqsdk", :path => "../node_modules/react-native-qqsdk"
```
4. Pod install
5. Follow step 7,8,9 in iOS Setup

### Manual
```shell
npm install --save react-native-qqsdk@latest
```
#### iOS Setup

1. Open your app's Xcode project
{'fraction_non_alphanumeric': 0.17774989544123798, 'fraction_numerical': 0.0075282308657465494, 'mean_word_length': 4.131974248927039, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 16, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '692402', 'n_tokens_mistral': 1836, 'n_tokens_neox': 1680, 'n_words': 349}