Skip to content

Commit

Permalink
[android][sample] Display fresco image on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
passy committed Sep 19, 2023
1 parent 699759b commit 3bfbee1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ static Component onCreateLayout(final ComponentContext c, @State boolean display
.textSizeSp(20)
.clickHandler(RootComponent.triggerCrash(c)))
.child(
FrescoVitoImage2.create(c)
displayImage ? FrescoVitoImage2.create(c)
.uri(Uri.parse("https://fbflipper.com/img/icon.png"))
.marginDip(YogaEdge.ALL, 10)
.widthDip(150)
.heightDip(150))
.heightDip(150) : null)
.build();

return VerticalScroll.create(c).childComponent(col).build();
Expand Down

0 comments on commit 3bfbee1

Please sign in to comment.