Files
status-react/src/dev/component_preview/view.cljs
T
Lungu Cristian 954373105d Visual debugging of components (#17729)
* feat: debug/show components from the REPL

* ref: some renames and cleanup

* chore: removed comments/imports

* feat: added remount on every eval & small changes

* doc: added tip to debugging doc

* doc: formatting

* doc: more formatting

* fix: fixed docs and other review comments

* fix: moved & renamed into the dev.component-preview ns

* style: adjusted debugging readme spacing

* fix: removed trailing line
2023-10-27 13:14:01 +03:00

17 lines
391 B
Clojure

(ns dev.component-preview.view
(:require
[react-native.core :as rn]
[utils.re-frame :as rf]))
(def ^:private container-style
{:flex 1
:padding-horizontal 20
:padding-top 80
:align-items :center})
(defn view
[]
(let [component (rf/sub [:dev/previewed-component])]
[rn/view {:style container-style}
(when component component)]))