function _executeAsAnimatedBatch(id: string, operation: () => void) {
  NativeAnimatedAPI.setWaitingForIdentifier(id);
  operation();
  NativeAnimatedAPI.unsetWaitingForIdentifier(id);
}
Some operations are executed only on batch end, which is _mostly_ scheduled when
Animated component props change. For some of the changes which require immediate execution
(e.g. setValue), we create a separate batch in case none is scheduled.