Unfortunately, the call PIXI.Sprite.fromExpoAsync(imageUri) throws an error:
Error: Expected URL scheme 'http' or 'https' but was 'file'
I have looked through the documentation as well as reading through the issues and some of the code, it seems as if the exception comes from a lower level, but how is fromExpoAsync supposed to be used? Is it possible to use remote resources? Should I use another API?
I'm trying to use expo-pixi to read out the color of the background (really the top left pixel) of an image. The image is hosted on a
https://
url.I'm doing this:
Unfortunately, the call
PIXI.Sprite.fromExpoAsync(imageUri)
throws an error:I have looked through the documentation as well as reading through the issues and some of the code, it seems as if the exception comes from a lower level, but how is
fromExpoAsync
supposed to be used? Is it possible to use remote resources? Should I use another API?See this snack: https://snack.expo.io/@fredrikschweinebarth/8ac094