Fork me on GitHub
#rum
<
2016-10-27
>
kurt-yagram11:10:24

Did anyone (reading this) use rum for hybrid app development?

Niki11:10:50

What's hybrid apps?

kurt-yagram11:10:18

ok, sorry, hybrid mobile applications. Using plain html5/css/js for mobile applications.

kurt-yagram11:10:45

There are frameworks out (like Ionic, OnsonUI), but I don't seem to like them much.

kurt-yagram11:10:08

I do like rum, but I just wonder how it would turn out for mobile.

kurt-yagram11:10:29

... and if someone used it, if there are any experience reports.

kurt-yagram11:10:35

I tend to like experience reports 🙂.

misha12:10:27

you can use rum with re-natal (react native)

kurt-yagram12:10:12

ok, thanks...

kurt-yagram12:10:06

not really rum, is it? - Did you use it @misha?

kurt-yagram12:10:40

oh yeah, it is...

misha12:10:00

I use it with RN, yes

misha12:10:40

you will not see sablono's keyword tags anymore, though, but other than that - it's identical:

misha12:10:06

(set! js/window.React (js/require "react"))
(def ReactNative (js/require "react-native"))

(def text (partial create-element (.-Text ReactNative)))
(def view (partial create-element (.-View ReactNative)))

(rum/defc foo [txt]
  (view {:style {:padding 20}}
    (text {:style {:fontSize 10}} txt)))

misha12:10:12

to get started, do: re-natal init my-project-name -i rum

kurt-yagram13:10:10

allright, thanks a lot!

kurt-yagram17:10:26

It's cool, re-natal, only, I don't get why there's a different source for iOS and Android in the initial project... It looks really pretty much the same, except for the namespace. Is there any reason to duplicate the code?