Fork me on GitHub

Cannot find - does stateless functional component work with RN? And can we make it using CLJS? Like from here:

var Aquarium = ({species}) => (


Never mind - by default with such functional components shouldComponentUpdate will always return true and we’ll loose the biggest win from immutable data structures.


The more I look into Rum - the more I like it


whole source code is just a 400 lines


btw, cloc treats clj docstrings as code too


btw - I’m a bit worried: src folder wasn’t changed during last 5 months. Either project is done or it’s kinda partially abandoned. What do you think?


it is not officially RN-ported, and there is nothing new in R afaik, so that'd be my guess of reason


Nice - so it’s complete. Are you considering to officially port it to RN? I know it’s one line change but would be awesome to make a pull request to change it or maybe at least mention it in the README?


the only difference I found with rum between R/RN:

[:div [:span "text"]] ;;no props
works, and this does not:
(touchable-highlight (text "text"))
so you need to provide {}:
(touchable-highlight {} (text {} "text"))
which is difference between "raw" RN components use via interop, and sablono's dom; and is not actual rum's issue


@artemyarulin: I'm not very profound in neither R nor RN nor rum to conclude that's it is in fact ported : ) so my plan was to actually port a piece of app first, and then spread the word


Nice, I’ll play with this as well


I’m trying to write some tests, but I’ve been hitting some issues when running them. i.e. whenever my source code hits a line that calls (js/require “<some required dep>”), I get thrown an error. I’m just using cljs.test’s deftest, is, and run-tests. Listed below some of the other errors I’m seeing as well. Any suggestions? when referencing js/DEV__

ReferenceError: __DEV__ is not defined
when trying to require (js/require "react-native")
SyntaxError: Unexpected token …
when including dependency ajax.core
(extend-type js/XMLHttpRequest
ReferenceError: XMLHttpRequest is not defined
at Object.<anonymous> (<my-dev-directory>/target/ajax/xml_http_request.cljs:11:1)


@jessica: I guess you can try release build - it should generate bundle with all JS embeded


Thank @artemyarulin ! just to clarify, do you mean running lein prod-build? I'll try that out later today and let you know how it goes!