Fork me on GitHub
#cljsrn
<
2016-04-12
>
stepugnetti07:04:01

@seantempesta: I don’t understand what happens. I just found this strange thing. I have a repo where a minimal case is shown (it is with React and ReactRouter, but the same happens with React Native and ReactNativeRouterFlux). https://github.com/stepugnetti/react-router-issue

hemingward19:04:46

hey all - quick newb question, as I’m getting annoyed with Google: What’s the best way to make an xmlhttprequest in re-natal? Do I just use ajax.core, or do I have to go down and (somehow?) use the “fetch” api in RN?

artemyarulin20:04:31

@hemingward: Both XMLHttpRequest and fetch is available in RN (as far as I remember fetch is just a promise wrapper in RN). You can pretty much create a wrapper around XHR or fetch

artemyarulin20:04:31

Here my attempt to make it https://github.com/artemyarulin/koh/blob/master/src/koh/http.cljs#L28-L59, but I guess you can use other CLJS libs for browser http