diff --git a/src/react_native/utils.cljs b/src/react_native/utils.cljs index 8430e8659b..d983de0017 100644 --- a/src/react_native/utils.cljs +++ b/src/react_native/utils.cljs @@ -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)) diff --git a/src/status_im/core.cljs b/src/status_im/core.cljs index 5e0456bbae..e432e442ea 100644 --- a/src/status_im/core.cljs +++ b/src/status_im/core.cljs @@ -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)