We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2bc0b7 commit 9743cdbCopy full SHA for 9743cdb
packages/canvas/Canvas2D/ImageData/ImageData.ios.ts
@@ -1,9 +1,9 @@
1
-import {ImageDataBase} from './common';
+import { ImageDataBase } from './common';
2
3
export class ImageData extends ImageDataBase {
4
constructor(nativeInstance: any) {
5
super(nativeInstance);
6
- this.data = new Uint8ClampedArray(nativeInstance.data);
+ this.data = new Uint8ClampedArray(interop.bufferFromData(nativeInstance.data));
7
}
8
9
static fromNative(nativeInstance) {
0 commit comments