Fork me on GitHub
#cljsrn
<
2015-12-02
>
mfikes02:12:42

I can attach to JavaScriptCore running in the simulator via Ambly with Safari WebKit Inspector (using the Develop menu), and also using ios-webkit-debug-proxy. But neither of those are doing source mapping back to ClojureScript. If anyone get’s this working, please share how. simple_smile

gphilipp12:12:04

And the answer to my own question above is:

(lineargradient {:colors
                 [(js/React.processColor "#4c669f")
                  (js/React.processColor "#3b5998")
                  (js/React.processColor "#192f6a")]
                 :style {:flex 0.1}}
                (text {:style {:paddingBottom 10}}
                      "Login now")))

gphilipp12:12:46

I haven’t figured out yet how to have the text on the button like the demo the component’s homepage instead of floating above.

artemyarulin13:12:50

@gphilipp: Are you working on some open-source project? I’ll be happy to see the source if possible simple_smile

gphilipp13:12:23

It's not open source but I'd be glad to submit interesting parts as I go in some kind of react-native-clojurescript-cookbook or contribute to an open source demo where we could demonstrate useful components and how routing works for example. By the way, there is also this nice repo by Jearvon Dharrie : https://github.com/iamjarvo/zooborns

mfikes13:12:52

Yeah, it seems like there are lots of little tips and tricks. The js/React.processColor trick doesn't warrant a whole blog post—just something to keep somewhere.

mfikes13:12:13

Maybe we could collaborate on such a cookbook, modeled after Anna's Om equivalent. @donmullen made a cljsrn guthub group that might be a cool place to have such a thing. Just an idea.

artemyarulin13:12:01

I’ll be happy to push my proof of concepts with Om-next and I guess community would benefit from it

donmullen13:12:29

@artemyarulin: that’s the one - would be great to pull in various work / cookbooks / etc here.

artemyarulin13:12:08

Haven’t used github groups before - can I create a project with my PoC and then add it to this group?

artemyarulin13:12:54

I guess it will be much easier to put staff in different projects and group it together under this group rather than create one project and die in a dependency hell simple_smile

iamjarvo15:12:51

I intend to keep adding to that zooborns repo

scttnlsn19:12:45

Anyone else running into this issue w/ Natal? https://github.com/dmotz/natal/issues/45

scttnlsn19:12:08

thanks @hmadelaine I’ll give that a read

hmadelaine19:12:06

@scttnlsn: You are welcome. On one of my machine, despite the recommandations on this page I cannot connect the first time. Often after the fifth try. I hope you are not in the same case 😉

scttnlsn19:12:13

@hmadelaine: I think it just can’t connect because the app crashes

scttnlsn19:12:29

Have no problem mounting from the terminal and turned my OSX firewall off

scttnlsn19:12:49

Here’s a screenshot of the error that causes a crash in Xcode: https://github.com/dmotz/natal/issues/45#issuecomment-161410240

scttnlsn19:12:59

Actually, trying to mount from the terminal doesn’t do anything…I ran mount_webdav /Volumes/TestAmbly but it doesn’t actually mount anything (no errors either)

hmadelaine19:12:05

@scttnlsn: I have the same symptom

gphilipp21:12:34

@mfikes: do you have an example of navigating from screen to other screens with om/next and react-native ?

mfikes21:12:24

no, but Zooborns does, right? (Jearvon's Conj demo.)

gphilipp21:12:19

I think it does with navigator-ios, but I can’t confirm since I can’t manage to run his app. I cloned the repo, ran npm install in the native directory, ran natal xcode, built successfully but then it won’t run, it fails with a EXC_BAD_ACCESS at RTCContextExecutor.m:397.

gphilipp21:12:38

I’m trying to figure out how it works from his source code right now.

gphilipp21:12:14

And there is also https://github.com/aksonov/react-native-router-flux, https://github.com/aksonov/react-native-redux-router, https://github.com/t4t5/react-native-router. There’s a plethora of choice for routing it seems. What does play best with om/next is yet to see.