viestat / react-native-spotify

A native module that allows you to use the Spotify SDK API with react-native
MIT License
108 stars 23 forks source link

metadata function returns null #25

Open anker2000 opened 6 years ago

anker2000 commented 6 years ago

Using the example from the example folder I added the metadata function to the code like this:

SpotifyModule.playSpotifyURI("spotify:track:12x8gQl2UYcQ3tizSfoPbZ", 0, 0.0, (error) => { if(error) { console.error('Something went wrong') } SpotifyModule.metadata((res)=>{console.log(res);}); });

All I get from the console is null. What am I doing wrong?