Skip to content

Commit

Permalink
Correct onEndReached prop for FlatList (#352)
Browse files Browse the repository at this point in the history
The js.Object returned by onEndReached is (stringified) something like {"distanceFromEnd":263.00006103515625}
  • Loading branch information
mcallisto committed Apr 7, 2020
1 parent e9e3c53 commit d27b9c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions native/src/main/scala/slinky/native/FlatList.scala
Expand Up @@ -11,8 +11,7 @@ import scala.scalajs.js.|
case class Separators(highlight: () => Unit, unhighlight: () => Unit, updateProps: (String, js.Object) => ReactElement)
case class ItemLayout(length: Int, offset: Int, index: Int)

case class OnEndReachedInfo(distanceFromEnd: Int)
case class OnEndReachedEvent(info: OnEndReachedInfo)
case class OnEndReachedEvent(distanceFromEnd: Double)

case class ViewToken[T](
item: T,
Expand Down

0 comments on commit d27b9c3

Please sign in to comment.