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

Illegal callback invocation from native module #15

Open digitaldavenyc opened 7 years ago

digitaldavenyc commented 7 years ago

I know this repo has not received a lot of love lately but this is a fairly critical issue. After upgrading to RN 0.44, logging in with Spotify via facebook produces the following error.

screen shot 2017-08-27 at 11 32 51 pm

The issue seems to be fairly well documented and happened with a lot of other RN libraries

https://github.com/zmxv/react-native-sound/issues/152 https://github.com/facebook/react-native/issues/13595

digitaldavenyc commented 7 years ago

I'm working on a solution this but I am having some trouble getting EventEmitter to work correctly. I've posted the issue on stackoverflow here: https://stackoverflow.com/questions/45952936/react-native-eventemitter-not-registering-events

If someone could lend some advise it would be very helpful in getting a PR submitted.

viestat commented 7 years ago

@digitaldavenyc I will have a look at it too, thanks for reporting this 👍

viestat commented 7 years ago

@digitaldavenyc I was working on https://github.com/viestat/react-native-spotify/pull/16 Maybe you can already check it out while I finalise it

digitaldavenyc commented 7 years ago

@viestat I'd be happy to let me know when you think it's good to go. I don't know if upgrading will fix this issue though because it does seem to be partially a react-native flaw with callbacks.