 (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"))


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

(defn header [save-fn cancel-fn label]
  (let [theme (subscribe [:active-theme])]
    (fn [save-fn cancel-fn]
      (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])]

                                            :color            text-color
                                            :width            "100%"}
                       :multiline          true
                       :default-value      (:md @local)
                       :keyboard-type      "twitter"
                       :keyboardAppearance (if (= @theme :dark) "dark" "light")
                       :on-change-text     (fn [text]
                                             (swap! local assoc-in [:md] text))}]]]))))
