 (defn editor [_]
   (let [theme (subscribe [:active-theme])]
     (fn [{:keys [screenProps navigation] :as props}]
-      (let [{:keys [navigate goBack]} (js->clj navigation :keywordize-keys true)
+      (let [{:keys [navigate]} (js->clj navigation :keywordize-keys true)
             cancel-fn (fn []
                         (.dismiss keyboard)
                         (navigate "Journal"))

                       (navigate "Journal"))
            bg (get-in c/colors [:list-bg @theme])
            text-bg (get-in c/colors [:text-bg @theme])
            text-color (get-in c/colors [:text @theme])
            header-color (get-in c/colors [:header-text @theme])]
        ;(swap! local2 assoc :navigate navigate)
        [view {:style {:display        "flex"
                       :flex-direction "column"
                       :padding-top    50}}


(def local (r/atom {:md ""}))

(defn header [_save-fn _cancel-fn _label]
  (let [theme (subscribe [:active-theme])]
    (fn [save-fn cancel-fn label]
      (let [button-bg (get-in c/colors [:button-bg @theme])
            btn-text (get-in c/colors [:btn-text @theme])
            header-color (get-in c/colors [:header-text @theme])]
