fullstackreact / react-native-oauth

A react-native wrapper for social authentication login for both Android and iOS
https://fullstackreact.com
MIT License
801 stars 214 forks source link

manager.addProvider is not a function. #109

Open akjesto opened 7 years ago

akjesto commented 7 years ago

I always get the error like

"manager.addProvider is not a function. (In 'manager.addProvider', 'manager.addProvider' is undefined)",

How to fix this? Please help me.

auser commented 7 years ago

Did you run react-native link?

vbuch commented 7 years ago

It seems that this will get fixed with a new release since the function is indded available in the current code (https://github.com/fullstackreact/react-native-oauth/blob/master/react-native-oauth.js#L32) but not in the currently latest version 2.1.14 (https://github.com/fullstackreact/react-native-oauth/blob/v2.1.14/react-native-oauth.js). You may use npm install git+https://github.com/fullstackreact/react-native-oauth --save meanwhile to use the code from the master branch on github

Edit: The same has been descibed in #80

vbuch commented 7 years ago

@auser has merged #111 (thanks) so @akjesto this should work for you.

Aleksion commented 7 years ago

Seems this still needs to be pushed to npmjs?

nickcobbett commented 7 years ago

I'm having the same issue. Is there a fix?

vbuch commented 7 years ago

@nickcobbett look at my comment above https://github.com/fullstackreact/react-native-oauth/issues/109#issuecomment-299994598

vbuch commented 7 years ago

2.2.0 closes this one.