GregoryNative / react-native-gl-image-filters

React-Native image filters using gl-react
MIT License
248 stars 35 forks source link

Using asset-library as URI is resulting in a black surface #51

Closed lees106 closed 3 years ago

lees106 commented 3 years ago

Hello! I was wondering why the surface is rendering this black canvas? I cant seem to make this work with expo media library or @react-native-community/cameraroll. I tried using a normal uri from google images and that works fine, just seems like it doesnt like "assets-library://". Any help will be appreciated, thanks!!!

Screen Shot 2021-07-05 at 11 13 27 AM Screen Shot 2021-07-05 at 11 14 03 AM
GregoryNative commented 3 years ago

@lees106 Hello. That looks like Expo (gl-react-expo) does not have loader for assets-library images. As you can see in source I am just passing children as it as: https://github.com/GregoryNative/react-native-gl-image-filters/blob/master/src/ImageFiltersComponent.js#L43