MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / animateHeight

Function animateHeight

apps/ui/src/animation/height-basic-page.ts:5–17  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

3let toggle = false;
4
5export function animateHeight(args) {
6 const clicked = args.object as Label;
7 clicked
8 .animate({
9 height: toggle ? 128 : '100%',
10 duration: 200,
11 curve: 'easeInOut',
12 })
13 .then(() => {
14 clicked.text = toggle ? 'Cool.' : 'Tap here';
15 });
16 toggle = !toggle;
17}

Callers

nothing calls this directly

Calls 1

animateMethod · 0.45

Tested by

no test coverage detected