Last active
September 30, 2019 21:06
-
-
Save kevinvangelder/2814847b55f49ad0a2e5127c974c6ded to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const imageAssetPath = Image.resolveAssetSource(require("./path/to/image.jpg"); | |
const response = await fetch(imageAssetPath.uri, {}, { isBinary: true }); | |
const rawImageData = await response.arrayBuffer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment