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

Doesn't work #2

Closed willyyang closed 8 years ago

willyyang commented 8 years ago

Hey man, thanks for creating this but I don't think this works. Followed all the steps but SpotifyAuth is not in NativeModules.

undefined is not an object (evaluating 'SpotifyAuth.setClientID')

Is there a step missing?

pmilla1606 commented 8 years ago

@willyyang did you get this resolved? running into the same issue

viestat commented 8 years ago

@pmilla1606 In your Xcode project can you see the SpotifyAuth.h ,SpotifyAuth.m, SpotifyLoginViewController,h and SpotifyLoginViewController files in the project folder?


filestructure copy

pmilla1606 commented 8 years ago

@viestat Yup, that did it. Thanks!

abbasfreestyle commented 7 years ago

Also due to the header change from 0.40 onwards the header needs to be updated from:

#import "RCTBridgeModule.h"

to

#import "React/RCTBridgeModule.h"