diff --git a/apps/app/perf-app/main-page.ts b/apps/app/perf-app/main-page.ts index 1abb7a54b..02e329997 100644 --- a/apps/app/perf-app/main-page.ts +++ b/apps/app/perf-app/main-page.ts @@ -16,6 +16,7 @@ export function pageLoaded(args: EventData) { let examples: Map = new Map(); examples.set("properties", "properties/main-page"); examples.set("flexbox", "flexbox/main-page"); + examples.set("recycling", "recycling/main-page"); let viewModel = new MainPageViewModel(wrapLayout, examples); page.bindingContext = viewModel; diff --git a/apps/app/perf-app/recycling/main-page.ts b/apps/app/perf-app/recycling/main-page.ts new file mode 100644 index 000000000..2c95470c2 --- /dev/null +++ b/apps/app/perf-app/recycling/main-page.ts @@ -0,0 +1,55 @@ +import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout"; +import { TextView } from "tns-core-modules/ui/text-view"; +import { Button } from "tns-core-modules/ui/button"; + +import * as tests from "./tests"; + +let runner; + +function getStack(stack: StackLayout): StackLayout { + let p = new StackLayout(); + stack.removeChildren(); + stack.addChild(p); + return p; +} + +export function onNavigatingFrom() { + clearInterval(runner); +} + +export function onTap(args) { + let btn =