mcnamee / react-native-starter-kit

:rocket: A React Native boilerplate app to get you up and running very, very quickly :rocket:
MIT License
3.35k stars 865 forks source link

User login to http://wp-api.mcnam.ee #79

Closed guizmo closed 7 years ago

guizmo commented 7 years ago

Hi there

I created an account on your API to test the user login part. But i get an error message when trying to login : "Response returned is not valid JSON" Could you tell me what i am doing wrong please ? screen shot 2017-06-03 at 19 13 19

mcnamee commented 7 years ago

Hi I noticed a similar thing last week. The Wordpress API is currently broken due to a Wordpress update :(

I tried to resolve, but couldn't get the WP plugins working. I'm hoping another WP/plugin update will fix, otherwise I'll need to look for another API example to showcase how to use with the StarterKit.

guizmo commented 7 years ago

Oh okay. thanks for the quick reply.

mcnamee commented 7 years ago

Hi @guizmo I've re-written the networking/data example in the app, to show off Firebase. You should be able to clone from master, and follow the instructions from the updated Readme.

guizmo commented 7 years ago

Thanks Matt !

guizmo commented 7 years ago

Ok i'm going to ask you one last question... Have you tried cloning master and starting from scratch ?

I get an error and it is the same on other boilerplates like https://github.com/bosung90/react-native-router-flux-example

screen shot 2017-06-12 at 18 28 11

openqubit commented 7 years ago

@guizmo Must you login to the a wordpress app?. If you are just using a php backend or node js one, i can share on how its done.If its wordpress its also possible but its not part of what i am doing right now.

guizmo commented 7 years ago

no this error is on first launch... Matt's latest update removed the (worpress) api to use Firebase

openqubit commented 7 years ago

Oh ok. Haven't had a chance to look at that.

mcnamee commented 7 years ago

@guizmo - I've tried fresh on a different computer and have reproduced. Downgrading/upgrading some of the dependencies helped for me (I've just pushed the working version to Master).

I also noted that React has deprecated PropTypes - so you'll see some other updates in there for that warning.

guizmo commented 7 years ago

Man you're DA BOMB... Yes i have noticed the PropTypes warning on other projects

On 13 June 2017 at 14:10, Matt Mcnamee notifications@github.com wrote:

@guizmo https://github.com/guizmo - I've tried fresh on a different computer and have reproduced. Downgrading/upgrading some of the dependencies helped for me (I've just pushed the working version to Master).

I also noted that React has deprecated PropTypes - so you'll see some other updates in there for that warning.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mcnamee/react-native-starter-app/issues/79#issuecomment-307994046, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqqt7rWJ8j7p1omHpSb48hlZtugsyEvks5sDf2ngaJpZM4NvBQC .