Live data from Hacker News

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

vasir.net

11–20 of 36 posts

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

#11
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 approach that aspect of it?

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

#13

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…

In this app I did not have to worry about that, but I can recommend https://github.com/sunnylqm/react-native-storage for dealing with storing on the device if you want to manually do things. I haven't built an app with React Native yet that does rely on local storage; however, with Redux and the redux-storage library it should be no problem

I do very much like Redux, but definitely that whole data flow layer can be intimidating. Wes Bos has a great free course on react / redux ( https://learnredux.com/ ) that can help that learning process, and there is the excellent courses on https://reacttraining.com/ if you are willing to invest a little bit of money on learning.

With all that said, you don't _need_ to use Redux or anything else to work with storing data. It might be a good idea to try manually storing with the aforementioned storage library just so you can get something working and feel like you're making progress; and then spending some time with Redux and (https://github.com/michaelcontento/redux-storage provides support for storing data with react native). Good luck!

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

#14

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?

Hopefully the app uses something less power-hungry than JS and a web browser to render the video. Ideally we wouldn't be using those for that task anywhere else either, but that battle's been lost.

Also: if they make you install an app they can track you better, and make it harder to block their ads/spying.

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

#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)

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

#18

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?

Because Google owns Youtube.

Google's primary business is online advertising.

Full-blown mobile browsers could have ad-blocking extensions, which Google does not want to happen on Youtube.

They purposefully attempt to stop people from being able to access Youtube on their phones outside of their official app.

There are restrictions on certain videos w.r.t. if it can be played on a phone or only on desktop - I don't know if this is licensing (music, etc) or what, but they care quite a lot about this.

They also have Youtube Red, which is a paid service that lets people play videos with their screens off, which you could theoretically bypass if you aren't using their app.

Post reply on HN