0.0.3 • Published 8 years ago

react-native-vksdk v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

react-native-vk-sdk

A wrapper around the iOS VK (VKontakte) SDK for React Native apps.

Setup

  1. Install package: npm install react-native-vksdk
  2. Setup your app for VK iOS SDK
  3. Add VkAppID key to Info.plist
  4. Add RCTVkSdkLoginManager.h and RCTVkSdkLoginManager.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();