Skip to content

Commit

Permalink
Temporarly ignore exception when running animations
Browse files Browse the repository at this point in the history
Summary: Running animations sometimes fail in Android. we are ignoring those failures temporarly

Reviewed By: fkgozali

Differential Revision: D14884510

fbshipit-source-id: 66d6113e12b1bd67e8bcc564943b423825b4cea6
  • Loading branch information
mdvacca authored and dsyang committed Apr 12, 2019
1 parent 11f846e commit 8eee149
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,12 @@ private long measure(
@Override
public void synchronouslyUpdateViewOnUIThread(int reactTag, ReadableMap props) {
long time = SystemClock.uptimeMillis();
scheduleMountItems(updatePropsMountItem(reactTag, props), time, 0, time, time);
try {
scheduleMountItems(updatePropsMountItem(reactTag, props), time, 0, time, time);
} catch (Exception ex) {
// ignore exceptions for now
// TODO T42943890: Fix animations in Fabric and remove this try/catch
}
}

/**
Expand Down

0 comments on commit 8eee149

Please sign in to comment.