Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RN 0.56 iOS] No loader found for value #8

Open
Stan64 opened this issue Jul 27, 2018 · 3 comments
Open

[RN 0.56 iOS] No loader found for value #8

Stan64 opened this issue Jul 27, 2018 · 3 comments

Comments

@Stan64
Copy link

Stan64 commented Jul 27, 2018

After installing the latest gl-react, gl-react-native and react-native-webgl on a clean RN 0.56 and get them to work without major fault I installed this library. In the documentation it doesn't say you need to use <Surface> so was a bit of trial and error. But now I have the basic example set up and get this error.

Node#7(blur1D#2), uniform t: no loader found for value "http://i.imgur.com/zJIxPEo.jpg" "http://i.imgur.com/zJIxPEo.jpg"

I'm doing nothing fancy here.

import { Surface } from "gl-react-native";
import { Blur } from "gl-react-blur";

<Surface style={{width: imgWidth, height: imgHeight}}>
  <Blur factor={0.5} passes={4}>
    http://i.imgur.com/zJIxPEo.jpg
  </Blur>
</Surface>
@gre
Copy link
Owner

gre commented Jul 27, 2018

can you try to use in inner children {{ uri: http://i.imgur.com/zJIxPEo.jpg }} ?

@Stan64
Copy link
Author

Stan64 commented Jul 27, 2018

That actually works. But I had to add quotation AND switch to https as http didn't work or gave me garbled images on those I tried from imgur. {{ uri: 'https://i.imgur.com/zJIxPEo.jpg' }}

@zanetti4
Copy link

I used it like yours but I got an error 'GL.Surface: width prop must be a strictly positive number'.
<Surface style={{ width: 200, height: 100 }}> <Blur factor={0.5} passes={4}> {{ uri: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1561464142040&di=bb5c8647d149a5a07238ca8fe0a88297&imgtype=0&src=http%3A%2F%2Fpic.rmb.bdstatic.com%2F162e189b94a5faac15a4fba25ea242e1.jpeg' }} </Blur> </Surface>
Can you tell me how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants