Skip to content

Commit

Permalink
Simple rename FrescoComponent -> FrescoImage
Browse files Browse the repository at this point in the history
Summary: Per title

Reviewed By: emilsjolander

Differential Revision: D4898469

fbshipit-source-id: 67edcd60b4f117ad16446429f18169063e664510
  • Loading branch information
IanChilds authored and facebook-github-bot committed Apr 17, 2017
1 parent ab79e04 commit 470d4be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/_docs/events-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class FacePileComponentSpec {
ComponentLayout.Builder builder = Column.create(c);
for (Uri face : avatarUrls) {
builder.child(
FrescoComponent.create(c)
FrescoImage.create(c)
.uri(face)
.withLayout()
.clickHandler(FacePileComponent.onFaceClicked(c, face));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import static com.facebook.litho.annotations.ResType.DRAWABLE;

@MountSpec
class FrescoComponentSpec {
class FrescoImageSpec {

private static final ScalingUtils.ScaleType DEFAULT_ACTUAL_IMAGE_SCALE_TYPE =
GenericDraweeHierarchyBuilder.DEFAULT_ACTUAL_IMAGE_SCALE_TYPE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.facebook.litho.annotations.OnCreateLayout;
import com.facebook.litho.annotations.Prop;
import com.facebook.litho.annotations.PropDefault;
import com.facebook.litho.fresco.FrescoComponent;
import com.facebook.litho.fresco.FrescoImage;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.drawee.interfaces.DraweeController;

Expand All @@ -31,7 +31,7 @@ static ComponentLayout onCreateLayout(
final DraweeController controller = Fresco.newDraweeControllerBuilder()
.setUri(image)
.build();
return FrescoComponent.create(c)
return FrescoImage.create(c)
.controller(controller)
.aspectRatio(aspectRatio)
.buildWithLayout();
Expand Down

0 comments on commit 470d4be

Please sign in to comment.