react-native-vksdk
v0.0.3
Published
A wrapper around the iOS VK (VKontakte) SDK for React Native apps
Downloads
6
Maintainers
Readme
react-native-vk-sdk
A wrapper around the iOS VK (VKontakte) SDK for React Native apps.
Setup
- Install package:
npm install react-native-vksdk
- Setup your app for VK iOS SDK
- Add
VkAppID
key to Info.plist - Add
RCTVkSdkLoginManager.h
andRCTVkSdkLoginManager.m
to you Libraries.
Usage
var Vk = require('react-native-vksdk');
// authorize and get token
Vk.authorize()
.then((result) => {
// your code here
}, (error) => {
// your code here
});
// logout
Vk.logout();