Closed robert-stevens closed 6 years ago
Hi @miklosme
I did see something like this was mentioned in this issue:
https://github.com/miklosme/gl-react-color-blending/issues/1
But I couldn't find any working example or documentation about it. If you could point me in the right direction, I would really appreciate it.
Thanks.
Hey @uppercase-army
Unfortunately I'm not very experienced with gl-react
, I never used it in production. I think your use case is possible, gl-react
supports composition well, but I can't tell you how.
I'd recommend you to ask this question where experienced gl-react
users are. Maybe at Reactiflux? They had a gl-react
channel at one point, but I can't find it right now.
Hey @miklosme
Thanks for the feedback, I will ask around.
Hi,
I am currently using https://github.com/react-native-community/react-native-linear-gradient and was wondering if I can pass the gradient through to ColorBlending instead of the color array?
What I am trying to achieve is having 3 layers:
`<LinearGradient start={{x: 0.0, y: 0.0}} end={{x: 1.0, y: 1.0}} locations={[0,0.25,0.5,0.75,1]} colors={['#692eff', '#642cf4', '#602ae9', '#5224c8', '#5e29e5']} style={styles.contentContainer}
`<ColorBlending color={[1,1,1,1]} blendMode={'blendOverlay'}
`