Live data from Hacker News

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

vasir.net

21–30 of 36 posts

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

#21

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/

Another is the SQLite module which comes with Expo:

Docs: https://docs.expo.io/versions/v16.0.0/sdk/sqlite.html Example: https://github.com/expo/sqlite-example/blob/master/main.js

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

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

Works fine on android. This app is just a webview anyway, so it is effectively the same thing.

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

#30
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 starting a new video.
Post reply on HN