Skip to content

Commit 2e7110d

Browse files
committed
react-native 0.44.0
1 parent da87c27 commit 2e7110d

File tree

5 files changed

+45
-27
lines changed

5 files changed

+45
-27
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package sri.universal.apis
2+
3+
import scala.scalajs.js
4+
import scala.scalajs.js.annotation.JSImport
5+
6+
@js.native
7+
trait DeviceInfo extends js.Object {
8+
val Dimensions: Dimensions = js.native
9+
}
10+
11+
@js.native
12+
@JSImport("react-native", "DeviceInfo")
13+
object DeviceInfo extends DeviceInfo
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package sri.universal.apis
2+
3+
import scala.scalajs.js
4+
import scala.scalajs.js.Promise
5+
import scala.scalajs.js.annotation.{JSImport, ScalaJSDefined}
6+
7+
@js.native
8+
@JSImport("react-native", "takeSnapshot")
9+
object TakeSnapshot extends js.Object {
10+
def apply(view: js.Any = ???,
11+
options: SnapShotOptions = ???): Promise[js.Any] = js.native
12+
}
13+
14+
@ScalaJSDefined
15+
trait SnapShotOptions extends js.Object {
16+
17+
var width: js.UndefOr[Double] = js.undefined
18+
19+
var height: js.UndefOr[Double] = js.undefined
20+
21+
var format: js.UndefOr[String] = js.undefined
22+
23+
var quality: js.UndefOr[Double] = js.undefined
24+
25+
}

src/main/scala/sri/universal/apis/UIManager.scala

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@ import scala.scalajs.js.Promise
55
import scala.scalajs.js.annotation.{JSImport, ScalaJSDefined}
66

77
@js.native
8-
trait UIManager extends js.Object {
9-
10-
def takeSnapshot(view: js.Any = ???, options: SnapShotOptions = ???): Promise[js.Any] = js.native
11-
}
8+
trait UIManager extends js.Object {}
129

1310
@js.native
14-
@JSImport("react-native","UIManager")
11+
@JSImport("react-native", "UIManager")
1512
object UIManager extends UIManager
16-
17-
@ScalaJSDefined
18-
trait SnapShotOptions extends js.Object {
19-
20-
var width: js.UndefOr[Double] = js.undefined
21-
22-
var height: js.UndefOr[Double] = js.undefined
23-
24-
var format: js.UndefOr[String] = js.undefined
25-
26-
var quality: js.UndefOr[Double] = js.undefined
27-
28-
}

src/main/scala/sri/universal/components/Lists.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ trait VirtualizedListProps[D, I] extends js.Object {
9191
val ItemSeparatorComponent: U[js.Function0[ReactElement]] = undefined
9292
val debug: U[Boolean] = undefined
9393
val data: U[D] = undefined
94+
val extraData: U[js.Any] = undefined
9495
val horizontal: U[Boolean] = undefined
9596
val initialNumToRender: U[Int] = undefined
9697
val maxToRenderPerBatch: U[Int] = undefined
@@ -103,9 +104,6 @@ trait VirtualizedListProps[D, I] extends js.Object {
103104
val removeClippedSubviews: U[Boolean] = undefined
104105
val onEndReached: U[OnEndReachedInfo] = undefined
105106
val getItem: U[js.Function2[D, Int, I]] = undefined
106-
val shouldItemUpdate: U[
107-
js.Function2[ListItem[I] /*previous*/, ListItem[I] /*next*/, Boolean]] =
108-
undefined
109107
val getItemCount: U[js.Function1[D, Int]] = undefined
110108
val onViewableItemsChanged
111109
: U[js.Function1[OnViewableItemsChanged[I], Unit]] =
@@ -149,6 +147,7 @@ trait SectionItem[I] extends js.Object {
149147
trait VirtualizedSectionListProps[D, I] extends VirtualizedListProps[D, I] {
150148
val sections: U[js.Array[SectionBase[I]]] = undefined
151149
val enableVirtualization: U[Boolean] = undefined
150+
val stickySectionHeadersEnabled: U[Boolean] = undefined
152151
val SectionSeparatorComponent: U[js.Function0[ReactElement]] = undefined
153152
val renderSectionHeader: U[js.Function1[SectionItem[I], ReactElement]] =
154153
undefined

src/main/scala/sri/universal/components/UniversalComponents.scala

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ trait UniversalComponents {
595595
horizontal: U[Boolean] = NoValue,
596596
initialNumToRender: U[Int] = NoValue,
597597
maxToRenderPerBatch: U[Int] = NoValue,
598+
extraData: U[js.Any] = NoValue,
598599
windowSize: U[Int] = NoValue,
599600
updateCellsBatchingPeriod: U[Int] = NoValue,
600601
onEndReachedThreshold: U[Int] = NoValue,
@@ -604,8 +605,6 @@ trait UniversalComponents {
604605
removeClippedSubviews: U[Boolean] = NoValue,
605606
onEndReached: U[OnEndReachedInfo] = NoValue,
606607
getItem: (D, Int) => I,
607-
shouldItemUpdate: U[(ListItem[I] /*previous*/, ListItem[I]) => Boolean] =
608-
NoValue,
609608
getItemCount: (D) => Int,
610609
onViewableItemsChanged: U[(OnViewableItemsChanged[I]) => Unit] = NoValue,
611610
onLayout: U[(ReactEvent[LayoutEvent]) => _] = NoValue,
@@ -641,6 +640,7 @@ trait UniversalComponents {
641640
initialNumToRender: U[Int] = NoValue,
642641
maxToRenderPerBatch: U[Int] = NoValue,
643642
windowSize: U[Int] = NoValue,
643+
extraData: U[js.Any] = NoValue,
644644
updateCellsBatchingPeriod: U[Int] = NoValue,
645645
onEndReachedThreshold: U[Int] = NoValue,
646646
viewabilityConfig: U[ViewabilityConfig] = NoValue,
@@ -649,8 +649,6 @@ trait UniversalComponents {
649649
removeClippedSubviews: U[Boolean] = NoValue,
650650
onEndReached: U[OnEndReachedInfo] = NoValue,
651651
getItem: U[(js.Array[I], Int) => I] = NoValue,
652-
shouldItemUpdate: U[(ListItem[I] /*previous*/, ListItem[I]) => Boolean] =
653-
NoValue,
654652
getItemCount: U[(js.Array[I]) => Int] = NoValue,
655653
onViewableItemsChanged: U[(OnViewableItemsChanged[I]) => Unit] = NoValue,
656654
onLayout: U[(ReactEvent[LayoutEvent]) => _] = NoValue,
@@ -691,10 +689,9 @@ trait UniversalComponents {
691689
disableVirtualization: U[Boolean] = NoValue,
692690
refreshing: U[Boolean] = NoValue,
693691
removeClippedSubviews: U[Boolean] = NoValue,
692+
stickySectionHeadersEnabled: U[Boolean] = NoValue,
694693
onEndReached: U[OnEndReachedInfo] = NoValue,
695694
getItem: U[(js.Array[I], Int) => I] = NoValue,
696-
shouldItemUpdate: U[(ListItem[I] /*previous*/, ListItem[I]) => Boolean] =
697-
NoValue,
698695
getItemCount: U[(js.Array[I]) => Int] = NoValue,
699696
onViewableItemsChanged: U[(OnViewableItemsChanged[I]) => Unit] = NoValue,
700697
onLayout: U[(ReactEvent[LayoutEvent]) => _] = NoValue,

0 commit comments

Comments
 (0)