Files
NativeScript/tns-core-modules/ui/activity-indicator/activity-indicator-common.ts
Hristo Hristov 0f14101238 recycling now happens only if nativeView and android properties are not accessed. (#4627)
recycleNativeView filed now accepts: "always" | "never" | "auto". Always will recycle the nativeView no matter if its nativeView or android proprties are accessed. Never will disable recycling. Auto will recycle it only if nativeView and android properties are not accessed.
2017-08-01 15:04:16 +03:00

14 lines
542 B
TypeScript

import { ActivityIndicator as ActivityIndicatorDefinition } from ".";
import { View, Property, booleanConverter } from "../core/view";
export * from "../core/view";
export class ActivityIndicatorBase extends View implements ActivityIndicatorDefinition {
public busy: boolean;
}
ActivityIndicatorBase.prototype.recycleNativeView = "auto";
export const busyProperty = new Property<ActivityIndicatorBase, boolean>({ name: "busy", defaultValue: false, valueConverter: booleanConverter });
busyProperty.register(ActivityIndicatorBase);