mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00

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.
14 lines
587 B
TypeScript
14 lines
587 B
TypeScript
import { TextField as TextFieldDefinition } from ".";
|
|
import { EditableTextBase, Property, booleanConverter } from "../editable-text-base";
|
|
|
|
export * from "../editable-text-base";
|
|
|
|
export class TextFieldBase extends EditableTextBase implements TextFieldDefinition {
|
|
public static returnPressEvent = "returnPress";
|
|
public secure: boolean;
|
|
}
|
|
|
|
TextFieldBase.prototype.recycleNativeView = "auto";
|
|
|
|
export const secureProperty = new Property<TextFieldBase, boolean>({ name: "secure", defaultValue: false, valueConverter: booleanConverter });
|
|
secureProperty.register(TextFieldBase); |