Set length value to auto when length is undefined

This commit is contained in:
mylmz10
2020-03-07 20:32:48 +03:00
parent 286fcd3f75
commit 1a316b8a72

View File

@ -1116,7 +1116,7 @@ function createNativePercentLengthProperty(options: NativePercentLengthPropertyO
setPercent = options.setPercent || percentNotSupported;
options = null;
}
if (length == "auto") { // tslint:disable-line
if (length == "auto" || !length) { // tslint:disable-line
setPixels(this.nativeViewProtected, auto);
} else if (typeof length === "number") {
setPixels(this.nativeViewProtected, layout.round(layout.toDevicePixels(length)));