react-native-vksdk

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

MIT License

Downloads
22
Stars
16

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();