fix(android): allow 0-length properties (#9485)

This commit is contained in:
Eduardo Speroni
2021-07-26 18:52:19 -03:00
committed by GitHub
parent f053001dc1
commit d45dea8471

View File

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