gre / gl-react

gl-react – React library to write and compose WebGL shaders

Home Page:https://gl-react-cookbook.surge.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to add Text using ViewShot and Surface

LillyBrainy opened this issue · comments

<ViewShot ref='viewShot' style={styles.ViewShot}> <TextAnimated style={{color:'red'}}/> <Surface style={styles.serface} > <Saturate contrast={contrast} saturation={saturation} brightness={brightness}> <BlurV factor={factor} map={map} passes={passes} > <Filter image={imageUri} name={name} resizeMode={resizeMode} /> </BlurV> </Saturate> </Surface> </ViewShot> when capturing the ViewShot only what inside the. surface is displayed and not the TextAnimated i'm using expo

okay it working fine in ios but in android it ignore the Text and only what inside the surface is displayed

ViewShot do NOT support snapshotting GL Views.
This is why there is a capture method available on the Surface (if you get a ref of it)

Even tho it might work on iOS there is no guarantee it will continue to, and it also do no work on Android. This is a limitation of ios/android at the moment to not be able to rasterize a gl view.