Fix failing test on ios 11 (#4686)

Add new perf-test page for view recycling
Changed the initialization of TextTransformation field
This commit is contained in:
Hristo Hristov
2017-08-16 15:19:01 +03:00
committed by GitHub
parent 172152a897
commit 2701ea3c1e
6 changed files with 470 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ export class ImageSource implements ImageSourceDefinition {
const data = getImageData(this.ios, format, quality);
if (data) {
return data.writeToFileAtomically(path, true);
return NSFileManager.defaultManager.createFileAtPathContentsAttributes(path, data, null);
}
return false;

View File

@@ -57,6 +57,7 @@ export class TextBase extends TextBaseCommon {
private _maxLines: number;
public initNativeView(): void {
initializeTextTransformation();
const nativeView = this.nativeViewProtected;
this._defaultTransformationMethod = nativeView.getTransformationMethod();
this._minHeight = nativeView.getMinHeight();
@@ -123,8 +124,6 @@ export class TextBase extends TextBaseCommon {
return;
}
initializeTextTransformation();
const spannableStringBuilder = createSpannableStringBuilder(value);
nativeView.setText(<any>spannableStringBuilder);
@@ -150,7 +149,6 @@ export class TextBase extends TextBaseCommon {
return;
}
initializeTextTransformation();
this.nativeViewProtected.setTransformationMethod(new TextTransformation(this));
}