diff --git a/src/react_native/fast_image.cljs b/src/react_native/fast_image.cljs index 3f86b501bd..0f7fae90c3 100644 --- a/src/react_native/fast_image.cljs +++ b/src/react_native/fast_image.cljs @@ -14,11 +14,14 @@ [_] (let [loaded? (reagent/atom false) error? (reagent/atom false)] - (fn [props] + (fn [{:keys [source] :as props}] [fast-image-class (merge props - {:on-error (fn [e] + {:source (if (string? source) + {:uri source} + source) + :on-error (fn [e] (when-let [on-error (:on-error props)] (on-error e)) (reset! error? true))