diff --git a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java index 887440dea97..e419c57a164 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java @@ -252,6 +252,15 @@ public class NativeAnimatedModule extends NativeAnimatedModuleSpec // won't cause any errors to execute it earlier than expected (just a bit of UI jank at worst) // so we just continue happily along. UIThreadOperation polledOperation = operationQueue.poll(); + if (peekedOperation != polledOperation) { + ReactSoftExceptionLogger.logSoftException( + NAME, + new RuntimeException( + "Inconsistency detected: peeked animation operation different from polled: " + + peekedOperation + + " / " + + polledOperation)); + } if (polledOperation == null) { return; }