{"id":15017617,"url":"https://github.com/doomsower/react-native-vkontakte-login","last_synced_at":"2025-04-09T16:05:33.958Z","repository":{"id":9474014,"uuid":"61728007","full_name":"doomsower/react-native-vkontakte-login","owner":"doomsower","description":"React native wrapper around VK iOS/Adnroid SDK","archived":false,"fork":false,"pushed_at":"2023-01-04T07:21:22.000Z","size":2447,"stargazers_count":98,"open_issues_count":51,"forks_count":43,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T16:05:29.554Z","etag":null,"topics":["react-native","vkontakte"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doomsower.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-22T15:00:01.000Z","updated_at":"2024-11-18T11:36:58.000Z","dependencies_parsed_at":"2023-01-13T16:23:59.495Z","dependency_job_id":null,"html_url":"https://github.com/doomsower/react-native-vkontakte-login","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doomsower%2Freact-native-vkontakte-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doomsower%2Freact-native-vkontakte-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doomsower%2Freact-native-vkontakte-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doomsower%2Freact-native-vkontakte-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doomsower","download_url":"https://codeload.github.com/doomsower/react-native-vkontakte-login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065288,"owners_count":21041871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react-native","vkontakte"],"created_at":"2024-09-24T19:50:45.753Z","updated_at":"2025-04-09T16:05:33.937Z","avatar_url":"https://github.com/doomsower.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Vkontakte login\n\n[![npm version](https://badge.fury.io/js/react-native-vkontakte-login.svg)](https://badge.fury.io/js/react-native-vkontakte-login) [![Build Status](https://travis-ci.org/doomsower/react-native-vkontakte-login.svg?branch=master)](https://travis-ci.org/doomsower/react-native-vkontakte-login)\n\nThis module is a wrapper around native VK SDKs for Android (v1) ([VK](https://vk.com/dev/android_sdk), [github](https://github.com/VKCOM/vk-android-sdk))\nand iOS ([VK](https://vk.com/dev/ios_sdk), [github](https://github.com/VKCOM/vk-ios-sdk)).\n\nIt allows to log in to VK and obtain access token, which you can later use to make VK API calls.\n\n## Compatibility\n\n| React Native version(s) | react-native-vkontakte-login version(s) | Old readme                |\n| ----------------------- | --------------------------------------- | ------------------------- |\n| 1.0.0                   | 0.60+                                   |\n| 0.4.x                   | 0.58 - 0.59                             | [0.4](docs/README_V04.md) |\n| 0.3.18                  | 0.52 - 0.57                             |\n| 0.1.17                  | 0.47 - 0.51                             | [0.1](docs/README_V01.md) |\n| 0.1.16                  | 0.41 - 0.46                             | [0.1](docs/README_V01.md) |\n\n## Installation\n\n```bash\nyarn add react-native-vkontakte-login\n```\n\nThis module support autolinking. However, some additional steps are required to configure native parts. They can be done automatically by running this script and answering questions:\n\n```bash\nyarn rn-vk-postlink\n```\n\nThe last step is to run `pod install`:\n\n```bash\ncd ios \u0026\u0026 pod install\n```\n\nFor manual installation instructions and for more detailed script description [read this](docs/installation.md).\n\n## Usage\n\nImport module in your JS code\n\n```js\nimport VKLogin from 'react-native-vkontakte-login';\n```\n\nInitialize VK with your APP ID once somewhere during your app startup:\n\n```js\ncomponentDidMount() {\n  VKLogin.initialize(5514471);\n}\n```\n\nCheck if user is logged in, perform login and logout:\n\n```js\nconst isLoggedIn = await VKLogin.isLoggedIn();\nconst auth = await VKLogin.login(['friends', 'photos', 'email']);\nconsole.log(auth.access_token);\nawait VKLogin.logout();\n```\n\nThe module also provides share method:\n\n```js\nconst shareResponse = await VKLogin.share({\n  linkText: 'Cool site',\n  linkUrl: 'https://news.ycombinator.com/',\n  description: 'Check out this cool site!',\n  image: TEST_IMAGE,\n});\n```\n\nCheck out [API Reference](docs/API.md) for more information.\n\n## License\n\n[MIT](https://github.com/doomsower/react-native-vkontakte-login/blob/master/LICENSE)\n\n## Contributing\n\nFeel free to submit pull requests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoomsower%2Freact-native-vkontakte-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoomsower%2Freact-native-vkontakte-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoomsower%2Freact-native-vkontakte-login/lists"}