                       `:height 80}}]
        [text {:style {:color "black"
                       :text-align "center"
-                      :font-weight "bold"}} "DOT DOT DOT"]])))
+                      :font-weight "bold"}}
+                      (if (number? (read-string @state))
+                          (str (to-pounds @state))
+                          (str "Not a number" @state (rand 10))
+                          )]])))
 
 (defn init []
-      (dispatch-sync [:initialize-db])
-      (.registerComponent app-registry "HelloReNatal" #(r/reactify-component app-root)))
+  (dispatch-sync [:initialize-db])
+  (.registerComponent app-registry "HelloReNatal" #(r/reactify-component app-root)))

(def logo-img (js/require "./images/cljs.png"))

(defn alert [title]
      (.alert (.-Alert ReactNative) title))

(defn app-root []
  (let [greeting (subscribe [:get-greeting])

  (:require [reagent.core :as r :refer [atom]]
            [re-frame.core :refer [subscribe dispatch dispatch-sync]]
            [hello-re-natal.events]
            [hello-re-natal.subs]
            [cljs.reader :as reader]))

(def read-string reader/read-string)
(def ReactNative (js/require "react-native"))

(def app-registry (.-AppRegistry ReactNative))
