MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / _animationWrap

Method _animationWrap

packages/core/ui/text-base/index.ios.ts:321–328  ·  view source on GitHub ↗
(fn: () => void)

Source from the content-addressed store, hash-verified

319 }
320 }
321 _animationWrap(fn: () => void) {
322 const shouldAnimate = this.iosTextAnimation === 'inherit' ? TextBase.iosTextAnimationFallback : this.iosTextAnimation;
323 if (shouldAnimate) {
324 fn();
325 } else {
326 UIView.performWithoutAnimation(fn);
327 }
328 }
329
330 _setNativeText(reset = false): void {
331 this._animationWrap(() => {

Callers 1

_setNativeTextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected