From e1576a54794c1eaa6addfffc317e778ddf9088ba Mon Sep 17 00:00:00 2001 From: Shadaj Laddad Date: Wed, 26 Aug 2020 11:04:24 -0700 Subject: [PATCH] Update React Native `Image` component to use latest prop types Fixes #311 --- native/src/main/scala/slinky/native/Image.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native/src/main/scala/slinky/native/Image.scala b/native/src/main/scala/slinky/native/Image.scala index c807c4e6..bea75c6e 100644 --- a/native/src/main/scala/slinky/native/Image.scala +++ b/native/src/main/scala/slinky/native/Image.scala @@ -3,6 +3,7 @@ package slinky.native import slinky.core.ExternalComponent import slinky.core.annotations.react import slinky.core.facade.ReactElement +import slinky.readwrite.ObjectOrWritten import scala.concurrent.Future import scala.scalajs.js @@ -38,7 +39,7 @@ case class ImageProgressEvent(loaded: Int, total: Int) onLoadEnd: js.UndefOr[() => Unit] = js.undefined, onLoadStart: js.UndefOr[() => Unit] = js.undefined, resizeMode: js.UndefOr[String] = js.undefined, - source: js.UndefOr[ImageURISource | Int | Seq[ImageURISource]] = js.undefined, + source: js.UndefOr[ImageURISource | js.Object | Seq[ImageURISource | js.Object]] = js.undefined, loadingIndicatorSource: js.UndefOr[Seq[ImageURISource | Int]] = js.undefined, onError: js.UndefOr[NativeSyntheticEvent[ImageErrorEvent] => Unit] = js.undefined, testID: js.UndefOr[String] = js.undefined,