         (if (:cam @local) "hide cam" "ws")]]
       [touchable-highlight
        {:style    defaults
-        :on-press #(let [put-fn @put-fn-atom]
-                     (put-fn [:sync/initiate]))}
+        :on-press #(put-fn [:sync/initiate])}
        [text {:style {:color       "white"
                       :text-align  "center"
                       :font-weight "bold"}}
         "sync"]]
       [touchable-highlight
        {:style    defaults
-        :on-press #(let [put-fn @put-fn-atom]
-                     (put-fn [:state/reset]))}
+        :on-press #(put-fn [:state/reset])}
        [text {:style {:color       "white"
                       :text-align  "center"
                       :font-weight "bold"}}

                    :padding-right  10}}
      [touchable-highlight
       {:style    (merge defaults {:background-color "green"})
        :on-press #(let [put-fn @put-fn-atom
                         new-entry (p/parse-entry (:md @local))
                         new-entry-fn (h/new-entry-fn put-fn new-entry nil)]
                     (new-entry-fn)
                     (swap! local assoc-in [:md] ""))}

            [cljs.pprint :as pp]
            [meo.helpers :as h]
            [meo.utils.parse :as p]))

(def ReactNative (js/require "react-native"))
(def react-native-camera (js/require "react-native-camera"))
