Skip to content

Commit

Permalink
Disable Fresco integration for now (#5101)
Browse files Browse the repository at this point in the history
Summary:
[android][sample] Disable Fresco integration for now
There's currently a startup crash

https://gist.github.com/passy/3f6b5935d8f9171ea0d3d915857b9786

We'll need to wait for a new Fresco release. In the meantime, let's comment this out so we can still use the rest of the app.

 ---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/flipper/pull/5101).
* __->__ #5101
* #5100

Pull Request resolved: #5101

Reviewed By: lblasa

Differential Revision: D48863903

Pulled By: passy

fbshipit-source-id: 0cb9c6050cf70a989b11ca60b3019ebab104279f
  • Loading branch information
passy authored and facebook-github-bot committed Sep 1, 2023
1 parent 38e6415 commit 42b95c2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
package com.facebook.flipper.sample;

import android.content.Intent;
import android.net.Uri;
import com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity;
import com.facebook.flipper.sample.network.NetworkClient;
import com.facebook.fresco.vito.litho.FrescoVitoImage2;
import com.facebook.litho.ClickEvent;
import com.facebook.litho.Column;
import com.facebook.litho.Component;
Expand Down Expand Up @@ -124,12 +122,14 @@ static Component onCreateLayout(final ComponentContext c, @State boolean display
.marginDip(YogaEdge.ALL, 10)
.textSizeSp(20)
.clickHandler(RootComponent.triggerCrash(c)))
.child(
FrescoVitoImage2.create(c)
.uri(Uri.parse("https://fbflipper.com/img/icon.png"))
.marginDip(YogaEdge.ALL, 10)
.widthDip(150)
.heightDip(150))
// TODO: Re-enable once we have a new Litho v0.48.0-compatible version of Fresco.
/*.child(
FrescoVitoImage2.create(c)
.uri(Uri.parse("https://fbflipper.com/img/icon.png"))
.marginDip(YogaEdge.ALL, 10)
.widthDip(150)
.heightDip(150))*/

.build();

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

0 comments on commit 42b95c2

Please sign in to comment.