https://github.com/doochik/react-native-vksdk
A wrapper around the iOS VK (VKontakte) SDK for React Native apps.
https://github.com/doochik/react-native-vksdk
Last synced: about 1 year ago
JSON representation
A wrapper around the iOS VK (VKontakte) SDK for React Native apps.
- Host: GitHub
- URL: https://github.com/doochik/react-native-vksdk
- Owner: doochik
- License: mit
- Created: 2015-11-11T17:27:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-14T18:59:03.000Z (almost 10 years ago)
- Last Synced: 2025-05-25T10:48:29.884Z (about 1 year ago)
- Language: Objective-C
- Size: 3.18 MB
- Stars: 16
- Watchers: 1
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://badge.fury.io/js/react-native-vksdk)
# react-native-vk-sdk
A wrapper around the [iOS VK (VKontakte) SDK](https://github.com/VKCOM/vk-ios-sdk) for React Native apps.
## Setup
1. Install package: `npm install react-native-vksdk`
1. Setup your app for [VK iOS SDK](https://github.com/VKCOM/vk-ios-sdk)
2. Add `VkAppID` key to Info.plist
3. Add `RCTVkSdkLoginManager.h` and `RCTVkSdkLoginManager.m` to you Libraries. 
## Usage
```js
var Vk = require('react-native-vksdk');
// authorize and get token
Vk.authorize()
.then((result) => {
// your code here
}, (error) => {
// your code here
});
// logout
Vk.logout();
```