android: compat webviewexecutor to support arraybuffer
This commit is contained in:
@@ -150,14 +150,12 @@ export class Image extends View {
|
||||
return this.nativeChannel(context, "getImagePixels")()
|
||||
}
|
||||
|
||||
toModel() {
|
||||
toModel(): NativeViewModel {
|
||||
const ret = super.toModel()
|
||||
if (Environment.platform === 'iOS') {
|
||||
if (Reflect.has(ret.props, "imagePixels")) {
|
||||
const imagePixels = Reflect.get(ret.props, "imagePixels")
|
||||
const pixels = imagePixels.pixels
|
||||
imagePixels.pixels = this.callback2Id(() => pixels)
|
||||
}
|
||||
if (Reflect.has(ret.props, "imagePixels")) {
|
||||
const imagePixels = Reflect.get(ret.props, "imagePixels")
|
||||
const pixels = imagePixels.pixels
|
||||
imagePixels.pixels = this.callback2Id(() => pixels)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
Reference in New Issue
Block a user