Live data from Hacker News

How I learned React Native in a weekend and shipped an app

vasir.net

31–36 of 36 posts

Re: How I learned React Native in a weekend and shipped an app

#31
post #15

This is why we need mobile devices that run a full operating system and full browser. Missing features and incompatibility make mobile useless in many real-world cases. Why can't we just watch YouTube videos in Chrome on a mobile device?

> Why can't we just watch YouTube videos in Chrome on a mobile device? Is this an issue on android? I can do this without problems on iOS (with both iOS Chrome-skinned Safari and regular Safari)

It really isn't a problem on android. YouTube works perfectly on android chrome, but chrome tends to open the YouTube app on android since it's installed by default.

Re: How I learned React Native in a weekend and shipped an app

#32

I have prior ios experience and was able to get the view side of React Native working without much problems, but once I started needing to store something on the device (especially trying to understand Redux and other similar solutions), I hit a pretty solid wall in my development and eventually put it on the backburner. It looks like you might have been able to bypass this in your app, but if not, how did you approa…

You probably don't need Redux if it's just simple persistence of data. The simplest option is just to read and write a blob of JSON using the AsyncStorage API: https://facebook.github.io/react-native/docs/asyncstorage.ht... Another option you could try is Realm, which is commercial but has a free tier (even for commercial apps) and has a pretty simple API: https://news.realm.io/news/introducing-realm-react-native/ An…

Highly recommend realm, works like a charm and has migrations too.

Re: How I learned React Native in a weekend and shipped an app

#33

Couple notes about the android app - the icon is broken, all I see is the green android face - when i log in to youtube, it says the log in is from an Iphone per my google security alert - the back and forward arrows don't look right. They don't have the right icon to be a visual cue for back and forward. They look more like previous and next. - would be great to handle full screen - video speed is not preserved when…

Also it seems to require too many permissions for what is does.

Re: How I learned React Native in a weekend and shipped an app

#34

I have prior ios experience and was able to get the view side of React Native working without much problems, but once I started needing to store something on the device (especially trying to understand Redux and other similar solutions), I hit a pretty solid wall in my development and eventually put it on the backburner. It looks like you might have been able to bypass this in your app, but if not, how did you approa…

You probably don't need Redux if it's just simple persistence of data. The simplest option is just to read and write a blob of JSON using the AsyncStorage API: https://facebook.github.io/react-native/docs/asyncstorage.ht... Another option you could try is Realm, which is commercial but has a free tier (even for commercial apps) and has a pretty simple API: https://news.realm.io/news/introducing-realm-react-native/ An…

Okay cool. Good to know that you don't need to use Redux in conjunction with AsyncStorage. I also like SQLite, so I'll investigate that as well.

It'd be really nice if I get away without Redux. It was the main pain point I had with it, everything else was fairly smooth.

Re: How I learned React Native in a weekend and shipped an app

#35
post #32

Earlier quoted context omitted.

You probably don't need Redux if it's just simple persistence of data. The simplest option is just to read and write a blob of JSON using the AsyncStorage API: https://facebook.github.io/react-native/docs/asyncstorage.ht... Another option you could try is Realm, which is commercial but has a free tier (even for commercial apps) and has a pretty simple API: https://news.realm.io/news/introducing-realm-react-native/ An…

Highly recommend realm, works like a charm and has migrations too.

I'm sure it works great, but I dislike adding too many layers to my apps. I've been burned too many times by companies that have stopped supporting and moved on to something else, or disappeared, or haven't kept up with the latest iOS changes, or whatever, and I'm forced to migrate to a different solution, to let myself use these for my personal projects, where I have very limited time and energy.

Even using React Native is more than I'd normally do, but I don't see a better cross-platform option right now.

Re: How I learned React Native in a weekend and shipped an app

#36
post #10

This is why we need mobile devices that run a full operating system and full browser. Missing features and incompatibility make mobile useless in many real-world cases. Why can't we just watch YouTube videos in Chrome on a mobile device?

I can watch YouTube in Firefox on Android, but I get a lot of dropped frames.

Doesn't happen to me, and I'm using a Galaxy S3.
Post reply on HN