News for hackers. Stuff that matters.
Re:Show HN: Clothes shopping app UI built in React Native by robertAngst on Monday July 09, 2018 @09:57AM (#17490154)
Heh, when I saw UI, I was thinking-

So what?

Javascript, RN, flux, elements, etc... there are soo many ways to make it pretty. That was the whole point. Pretty for android and ios.

The redux tutorial is awful, you dont run the program until the very end. Needless to say, it didnt work and I ended up following a medium guide...

Now I'm trying to get redux working with laravel who requires a CSRF token on each post request. Not a big deal, but getting this CSRF token to be submitted doesnt seem to be trivial since it needs to be requested from the php and submitted all at once.

Not complaining because this is just logic and the job, but the difference between a working RN app and a working RN UI is 10 months.

Re:Show HN: Clothes shopping app UI built in React Native by chrisco255 on Monday July 09, 2018 @12:05PM (#17491245)
Not sure what Redux would have to do with a CSRF token? That's HTTP logic.
Re:Show HN: Clothes shopping app UI built in React Native by wolco on Monday July 09, 2018 @11:39AM (#17491024)
Use jwt instead and treat laravel as a pure api backend.