* 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
17 lines
391 B
Clojure
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)]))
|