Skip to content

Commit

Permalink
Allow mount content used in Stories to be preallocated
Browse files Browse the repository at this point in the history
Summary: I have identified some mount components that were not being allowed to be preallocated. for the Stories Viewer I'm enabling them in this diff.

Reviewed By: pentiumao

Differential Revision: D53040049

fbshipit-source-id: 2c990da4dd0544e46e4e70bedcaffdb36ecd5cfc
  • Loading branch information
Fabio Carballo authored and facebook-github-bot committed Jan 24, 2024
1 parent f1bf340 commit a3578d1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ public boolean isEquivalentProps(@Nullable Component o, boolean shouldCompareCom
return DrawableUtils.isEquivalentTo(mDrawable, drawableComponent.mDrawable);
}

@Override
public boolean canPreallocate() {
return true;
}

private int getDrawableWidth() {
return mDrawableWidth;
}
Expand Down

0 comments on commit a3578d1

Please sign in to comment.