{"id":18352468,"url":"https://github.com/jp7io/react-native-spotify","last_synced_at":"2026-05-18T00:31:42.241Z","repository":{"id":43936886,"uuid":"171938346","full_name":"jp7io/react-native-spotify","owner":"jp7io","description":"React Native module that exposes Spotify's iOS and Android SDKs to Javascript","archived":false,"fork":false,"pushed_at":"2022-02-13T14:32:37.000Z","size":5524,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-22T04:50:27.118Z","etag":null,"topics":["lib","react-native"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jp7io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-21T20:13:26.000Z","updated_at":"2025-08-27T12:19:22.000Z","dependencies_parsed_at":"2022-09-11T12:10:42.037Z","dependency_job_id":null,"html_url":"https://github.com/jp7io/react-native-spotify","commit_stats":null,"previous_names":["jp7io/react-native-spotify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jp7io/react-native-spotify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jp7io%2Freact-native-spotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jp7io%2Freact-native-spotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jp7io%2Freact-native-spotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jp7io%2Freact-native-spotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jp7io","download_url":"https://codeload.github.com/jp7io/react-native-spotify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jp7io%2Freact-native-spotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["lib","react-native"],"created_at":"2024-11-05T21:36:05.693Z","updated_at":"2026-05-18T00:31:42.224Z","avatar_url":"https://github.com/jp7io.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-spotify\n\nReact Native module that exposes Spotify's iOS and Android SDKs to Javascript\n\n## Getting started\n\n`$ yarn add react-native-spotify https://github.com/jp7internet/react-native-spotify.git`\n\n## Installation\n`$ react-native link react-native-spotify`\n\n### For Android\n\nOn android/app/build.gradle make sure it's **implementation** and not **compile**:\n\n```\ndependencies {\n  implementation project(':react-native-spotify')\n  ...\n```\n\nAlso on android/app/build.gradle activate support for Java 8:\n\n```\nandroid {\n    ...\n    compileOptions {\n        sourceCompatibility JavaVersion.VERSION_1_8\n        targetCompatibility JavaVersion.VERSION_1_8\n    }\n...\n```\n\nOn android/settings.gradle add:\n\n```\ninclude ':spotify-app-remote'\nproject(':spotify-app-remote').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-spotify/android/spotify-app-remote')\ninclude ':spotify-auth'\nproject(':spotify-auth').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-spotify/android/spotify-auth')\n```\n\n\n### For iOS\nAdd to AppDelegate.m\n\n```\n#import \u003cRNSpotifyBridge.h\u003e\n\n  - (BOOL)application:(UIApplication *)app\n              openURL:(NSURL *)url\n              options:(NSDictionary\u003cUIApplicationOpenURLOptionsKey, id\u003e *)options\n  {\n    return [RNSpotifyBridge application:app openURL:url options:options];\n  }\n\n  - (void)applicationDidBecomeActive:(UIApplication *)application\n  {\n    return [RNSpotifyBridge applicationDidBecomeActive:application];\n  }\n\n  - (void)applicationWillResignActive:(UIApplication *)application\n  {\n    return [RNSpotifyBridge applicationWillResignActive:application];\n  }\n  \n  - (void)applicationWillTerminate:(UIApplication *)application\n  {\n    return [RNSpotifyBridge applicationWillTerminate:application];\n  }\n```\n\nAdd to Info.plist\n\n```\n\u003ckey\u003eCFBundleURLTypes\u003c/key\u003e\n\u003carray\u003e\n\t\u003cdict\u003e\n\t\t\u003ckey\u003eCFBundleURLName\u003c/key\u003e\n\t\t\u003cstring\u003e{BUNDLE_ID}\u003c/string\u003e\n\t\t\u003ckey\u003eCFBundleURLSchemes\u003c/key\u003e\n\t\t\u003carray\u003e\n\t\t\t\u003cstring\u003e{RedirectURI}\u003c/string\u003e\n\t\t\u003c/array\u003e\n\t\u003c/dict\u003e\n\u003c/array\u003e\n\u003ckey\u003eLSApplicationQueriesSchemes\u003c/key\u003e\n\u003carray\u003e\n\t\u003cstring\u003espotify\u003c/string\u003e\n\u003c/array\u003e\n```\n\nAdd to the Project Configs\n\n- General -\u003e Linked Frameworks and Libraries\n\t- Click the plus sign (+), then click \"Add Other...\"\n\t- add ../node_modules/react-native-spotify/ios/Frameworks/SpotifyiOS.framework\n- Build Settings\n\t- Framework Search Path\n\t\t- add: $(SRCROOT)/../node_modules/react-native-spotify/ios/Frameworks - recursive\n\t- Header Search Path\n\t\t- add $(SRCROOT)/../node_modules/react-native-spotify/ios - recursive\n\n## Usage\n```javascript\nimport Spotify from 'react-native-spotify';\n\nSpotify.initialize({configs})\n/*\n Readies Spotify\n Returns: Promise that resolves once Spotify is initialized or is rejected if there's an error\n params:\n configs: {\n\tclientID: String - required,\n\tredirectURI: String - required,\n\ttokenSwapURL: String - required,\n\ttokenRefreshURL: String - required,\n\tplayURI: String - required,\n }\n*/\n\nSpotify.connect()\n/*\n Connects to Spotify\n Returns: Promise that resolves to accessToken once a connection is stablished or is rejected if there's an error\n*/\n\nSpotify.disconnect()\n/*\n Disconnects from Spotify\n Returns: void\n*/\n\nSpotify.setPlayState(play)\n/*\n Play or pause a song\n Returns: Void\n params:\n  play: Bool\n*/\n\nSpotify.nextSong()\n/*\n Skips to the next song\n Returns: Void\n*/\n\nSpotify.previousSong()\n/*\n Skips to the previous song\n Returns: Void\n*/\n\nSpotify.playURI(spotifyURI)\n/*\n Plays from Spotify URI\n Returns: Void\n params:\n  spotifyURI: String\n*/\n\nSpotify.updatePlayerState()\n/*\n Updates Spotify player state\n Returns: Void\n*/\n\nSpotify.isInitializedAsync()\n/*\n Checks if Spotify is initialized\n Returns: Promise that resolves to true if Spotify is initialized or false if it's not\n*/\n\nSpotify.isLoggedInAsync()\n/*\n Checks if Spotify is connected\n Returns: Promise that resolves to true if Spotify is initialized or false if it's not\n*/\n\nSpotify.subscribe(callback)\n/*\n Calls callback on Spotify state change event.\n Returns: void\n Callback params: {\n  trackInfo: {\n\t name: String - current song name,\n\t album: String - current song album,\n\t albumURI: String - current song album URI,\n\t artist: String - current song artist,\n\t artistURI: String - current song artist URI,\n\t coverArt: String - current song cover art,\n\t},\n\tpaused: Bool - is player currently paused?,\n\tnext: Bool - can player skip to next song?,\n\tprevious: Bool - can player skip to previous song?,\n\taccessToken: String - User's acess token\n }\n*/\n\nRNSpotify.unsubscribe()\n/*\n Removes all Spotify state change event listeners.\n*/\n\n\nRNSpotify.webApiGet(endpoint, params)\n/*\n Makes call to Spotify Web Api endpoint\n Returns: Promise that resolve or reject acording to endpoint results\n Params:\n\tendpoint: String - The requested Spotify Web Api endpoint\n\tparams: Object - The params to be passed to the request\n*/\n\nRNSpotify.openInstallUrl(packageName)\n/*\n Opens Spotify install page on the App/Play Store, and tracks the request.\n Returns: void\n Params:\n \tpackageName: String - The package name for tracking\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjp7io%2Freact-native-spotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjp7io%2Freact-native-spotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjp7io%2Freact-native-spotify/lists"}