Skip to content

doochik/react-native-vksdk

Repository files navigation

NPM version

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages