chore: tslint errors

This commit is contained in:
Manol Donev
2019-06-25 18:00:04 +03:00
parent d402c05b2f
commit 28d7240cc5

View File

@ -219,7 +219,10 @@ export const widthProperty = new CssAnimationProperty<Style, PercentLength>({
// on the animation property, so fake it here. x_x // on the animation property, so fake it here. x_x
valueChanged: (target, oldValue, newValue) => { valueChanged: (target, oldValue, newValue) => {
if (isIOS) { if (isIOS) {
target.view.requestLayout(); const view = target.viewRef.get();
if (view) {
view.requestLayout();
}
} }
}, valueConverter: PercentLength.parse }); }, valueConverter: PercentLength.parse });
widthProperty.register(Style); widthProperty.register(Style);
@ -230,7 +233,10 @@ export const heightProperty = new CssAnimationProperty<Style, PercentLength>({
// on the animation property, so fake it here. -_- // on the animation property, so fake it here. -_-
valueChanged: (target, oldValue, newValue) => { valueChanged: (target, oldValue, newValue) => {
if (isIOS) { if (isIOS) {
target.view.requestLayout(); const view = target.viewRef.get();
if (view) {
view.requestLayout();
}
} }
}, valueConverter: PercentLength.parse, }, valueConverter: PercentLength.parse,