feat:Remove Image's setImagePixels API

This commit is contained in:
pengfei.zhou
2021-11-30 16:20:07 +08:00
committed by osborn
parent 5b5500b6e0
commit e9e2d14a9d
10 changed files with 4 additions and 77 deletions

View File

@@ -3328,14 +3328,6 @@ class Image extends View {
getImagePixels(context) {
return this.nativeChannel(context, "getImagePixels")();
}
setImagePixels(context, imagePixels) {
if (Environment.platform === 'iOS') {
imagePixels.pixels = context.function2Id(() => {
return imagePixels.pixels;
});
}
return this.nativeChannel(context, "setImagePixels")(imagePixels);
}
toModel() {
const ret = super.toModel();
if (Environment.platform === 'iOS') {

File diff suppressed because one or more lines are too long