Fork me on GitHub
#cljsrn
<
2017-10-09
>
hoopes00:10:15

is there a community best-of-breed for navigation (like stack/tab views)? I'm just getting started, so my apologies if this is well-known/often-asked. I found this https://reactnavigation.org/ which looks pretty good (and slickly marketed). There seems to be quite a few options, was just hoping someone would say "Yeah, we tried em all, this one seems to be best." Thanks very much in advance!

wojciech06:10:07

React Navigation is currently the most popular and probably the easiest choice

wojciech06:10:16

I wouldn't call it the best, though 😉

wojciech06:10:44

There are two competing solutions that offer a native implemenation of the navigation transitions: * https://github.com/airbnb/native-navigation * https://github.com/wix/react-native-navigation They're more-native, but probably also more hassle to set them up. As far as I know, the rest of libraries is only useful if you come from web JS and want something that feels familiar.

pesterhazy09:10:02

anyone else seeing this in CI build?

/usr/local/Homebrew/Library/Homebrew/brew.rb:12:in `<main>': Homebrew must be run under Ruby 2.3! (RuntimeError)

pesterhazy09:10:32

did they just flip the switch so that homebrew doesn't work on machines with ruby < 2.3 anymore?

hoopes12:10:58

@wojciech thanks a lot! you got a favorite?

wojciech13:10:51

Whenever I work with really custom design I use React Navigation. I'd use one of the native ones when I have something that has a default iOS (or Android) look. I didn't have to, yet.

bcbradley14:10:29

I've been thinking about a problem i'm having with implementing a music theory quiz app for ios and android using cljsrn targeting small children. The problem is that I've been told that the application should not require an internet connection, and yet I'm having trouble imagining a way to get the quiz information into the app without one. I suppose the only way is to put the information on each phone individually (not that I would want to do it that way personally, but the person paying for this work believes parents won't allow their children to have an internet connection so an app that relies on one is a deal breaker). The question is, how would I do that in a cross platform way (if there is such a way). If there isn't, how would I do it for android and IOS?

wojciech14:10:56

You can bundle the questions with the app and then use something like https://microsoft.github.io/code-push/ to update the app/questions without having to go through a new release and review process

wojciech14:10:23

I haven't used Code Push with cljs, though

hoopes20:10:16

Sorry for the elementary question, but I haven't found this spelled out in an elementary way via google. Is the preferred method for on-device data storage localStorage when using react native? I had used CoreData on iOS before, and I'm trying to mimic the persistent data. And, in re-natal, is it a good idea to write the data back to localStorage (or write an interceptor to only do it when you want) in handlers as a co-effect? If there's a different strategy for persistent storage other than localStorage, what (probably obvious) thing am I missing?