react-native-vksdk

0.0.3 • Public • Published

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 preview
  4. Add RCTVkSdkLoginManager.h and RCTVkSdkLoginManager.m to you Libraries. preview

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-native-vksdk

      Weekly Downloads

      2

      Version

      0.0.3

      License

      MIT

      Last publish

      Collaborators

      • doochik