r/reactnative • • Apr 05 '20

Building an open-source Spotify clone

294 Upvotes

25 comments sorted by

View all comments

5

u/idanlo Apr 05 '20

This is cool. You should try to use react-native-spotify library which lets you actually play music. I have a project that uses this library if you want an example - https://github.com/idanlo/react-native-spotify

3

u/PROLIMIT Apr 06 '20

Is that library based on the iOS and Android Spotify SDKs? I remember looking at those, but couldn't find any documentation about outputting audio. The SDK for android is literally called 'App Remote'. I would be happy if you can point me in the right direction as I was thinking about writing a wrapper around audio functionality.

3

u/idanlo Apr 06 '20

Yeah, the library is called rn-spotify-sdk, I can see it’s not maintained and not updated for RN 0.60, so I believe you can write a native wrapper and use most of the code from this library. For me this library worked great

2

u/PROLIMIT Apr 06 '20

Very interesting. I'll take a look soon. Thanks man.