 (def logo-img (js/require "./images/cljs.png"))
 
 (defn alert [title]
-      (.alert (.-Alert ReactNative) title))
+  (.alert (.-Alert ReactNative) title))
+
+(def pounds-per-kilogram 0.45359237)
+(defn to-pounds
+  [weight]
+  (* weight pounds-per-kilogram))
 
 (defn app-root []
   (let [greeting (subscribe [:get-greeting])

                      `:height 80}}]
       [text {:style {:color "black"
                      :text-align "center"
                      :font-weight "bold"}} "DOT DOT DOT"]])))

(defn init []
      (dispatch-sync [:initialize-db])
      (.registerComponent app-registry "HelloReNatal" #(r/reactify-component app-root)))

                       :width 80
                       :height 80
                       :margin-bottom 30}}]
       [text-input {:style {:height 40}
                    :on-change-text #(do
                                       (reset! state %)
                                       (r/flush))
                    :value @state}]
       [touchable-highlight {:style {:background-color "#999"
                                     :padding 10
                                     :border-radius 5}
                             :on-press #(alert (str (to-pounds 135)))}
        [text {:style {:color "white" :text-align "center" :font-weight "bold"}} "press me"]]
       [view {:style {:background-color "#000"
                      `:height 80}}]
