Display fresco image on demand (#5160)
Summary: [android][sample] Display fresco image on demand Pull Request resolved: https://github.com/facebook/flipper/pull/5160 Reviewed By: antonk52 Differential Revision: D49411927 Pulled By: passy fbshipit-source-id: 05d83d49df56f1e7eced2ce35d29880c9876b524
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1163769b83
commit
b808c4f9df
@@ -125,11 +125,13 @@ public class RootComponentSpec {
|
|||||||
.textSizeSp(20)
|
.textSizeSp(20)
|
||||||
.clickHandler(RootComponent.triggerCrash(c)))
|
.clickHandler(RootComponent.triggerCrash(c)))
|
||||||
.child(
|
.child(
|
||||||
FrescoVitoImage2.create(c)
|
displayImage
|
||||||
.uri(Uri.parse("https://fbflipper.com/img/icon.png"))
|
? FrescoVitoImage2.create(c)
|
||||||
.marginDip(YogaEdge.ALL, 10)
|
.uri(Uri.parse("https://fbflipper.com/img/icon.png"))
|
||||||
.widthDip(150)
|
.marginDip(YogaEdge.ALL, 10)
|
||||||
.heightDip(150))
|
.widthDip(150)
|
||||||
|
.heightDip(150)
|
||||||
|
: null)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
return VerticalScroll.create(c).childComponent(col).build();
|
return VerticalScroll.create(c).childComponent(col).build();
|
||||||
|
|||||||
Reference in New Issue
Block a user