Skip to content

Commit

Permalink
Update React Native Image component to use latest prop types
Browse files Browse the repository at this point in the history
Fixes #311
  • Loading branch information
shadaj committed Aug 26, 2020
1 parent 43e3288 commit e1576a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native/src/main/scala/slinky/native/Image.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e1576a5

Please sign in to comment.