chore: Nx 12 + fix ui app + TS 4.1 updates (#9359)

This commit is contained in:
Nathan Walker
2021-04-26 19:11:19 -07:00
committed by GitHub
parent 272ac578b1
commit 1b29d05099
14 changed files with 33 additions and 33 deletions

View File

@ -1,4 +1,4 @@
import { EventData, TextBase } from '@nativescript/core';
import { EventData, TextBase, parseCSSShadow } from '@nativescript/core';
// prettier-ignore
const possibleValues = [
@ -22,10 +22,10 @@ export function buttonTap(args: EventData) {
let newIndex = currentIndex++ % possibleValues.length;
let newValue = possibleValues[newIndex];
lbl.textShadow = newValue;
btn.textShadow = newValue;
textField.textShadow = newValue;
textView.textShadow = newValue;
lbl.textShadow = parseCSSShadow(newValue);
btn.textShadow = parseCSSShadow(newValue);
textField.textShadow = parseCSSShadow(newValue);
textView.textShadow = parseCSSShadow(newValue);
if (lbl.text === 'Change text') {
lbl.text = btn.text = textField.text = textView.text = 'Text changed';