Move setup to core

This commit is contained in:
Ulises M 2025-01-31 15:32:31 -06:00
parent 968d64cb2a
commit bf3a56d877
No known key found for this signature in database
GPG Key ID: 5A15782EB758534E
2 changed files with 5 additions and 1 deletions

View File

@ -60,4 +60,6 @@
:else (clj->js x)))
;; We override the default reagent implementation with the one that supports vectors.
(set! template/convert-prop-value convert-prop-value)
(defn set-convert-props-in-vectors!
[]
(set! template/convert-prop-value convert-prop-value))

View File

@ -11,6 +11,7 @@
[re-frame.interop :as interop]
[react-native.core :as rn]
[react-native.platform :as platform]
[react-native.utils]
[react-native.shake :as react-native-shake]
[reagent.core]
[reagent.impl.batching :as batching]
@ -35,6 +36,7 @@
(set! batching/fake-raf #(js/setTimeout % 0))
(def functional-compiler (reagent.core/create-compiler {:function-components true}))
(reagent.core/set-default-compiler! functional-compiler)
(react-native.utils/set-convert-props-in-vectors!)
(def adjust-resize 16)