Temporarly ignore exception when running animations

Summary: Running animations sometimes fail in Android. we are ignoring those failures temporarly

Reviewed By: fkgozali

Differential Revision: D14884510

fbshipit-source-id: 66d6113e12b1bd67e8bcc564943b423825b4cea6
This commit is contained in:
David Vacca
2019-04-10 17:28:32 -07:00
committed by Facebook Github Bot
parent ebbc4f6cc4
commit 261cda92de

View File

@@ -282,7 +282,12 @@ public class FabricUIManager implements UIManager, LifecycleEventListener {
@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
}
}
/**