Skip to content

Commit 2444951

Browse files
committed
fix FlatList in prod mode
1 parent 202a6c2 commit 2444951

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "universal"
22

3-
//version := "2017.2.0-SNAPSHOT"
3+
//version := "2017.4.0-SNAPSHOT"
44

55
enablePlugins(ScalaJSPlugin)
66

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ trait UniversalComponents {
613613
implicit def dataTOAny(in: D): js.Any = in.asInstanceOf[js.Any]
614614
val props = FunctionObjectMacro()
615615
extraProps.foreach(v => { MergeJSObjects(props, v) })
616-
CreateElementJS[VirtualizedListComponent.type](
616+
CreateElementJSNoInline[VirtualizedListComponent.type](
617617
VirtualizedListComponent,
618618
props.asInstanceOf[VirtualizedListProps[_, _]],
619619
key,
@@ -657,7 +657,7 @@ trait UniversalComponents {
657657
: ReactElement { type Instance = FlatListComponent.type } = {
658658
val props = FunctionObjectMacro()
659659
extraProps.foreach(v => { MergeJSObjects(props, v) })
660-
CreateElementJS[FlatListComponent.type](
660+
CreateElementJSNoInline[FlatListComponent.type](
661661
FlatListComponent,
662662
props.asInstanceOf[FlatListProps[I]],
663663
key,
@@ -703,7 +703,7 @@ trait UniversalComponents {
703703
: ReactElement { type Instance = SectionListComponent.type } = {
704704
val props = FunctionObjectMacro()
705705
extraProps.foreach(v => { MergeJSObjects(props, v) })
706-
CreateElementJS[SectionListComponent.type](
706+
CreateElementJSNoInline[SectionListComponent.type](
707707
SectionListComponent,
708708
props.asInstanceOf[SectionListProps[I]],
709709
key,

0 commit comments

Comments
 (0)