Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. const imageAssetPath = Image.resolveAssetSource(require("./path/to/image.jpg");
  2. const response = await fetch(imageAssetPath.uri, {}, { isBinary: true });
  3. const rawImageData = await response.arrayBuffer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement