gl-react icon indicating copy to clipboard operation
gl-react copied to clipboard

gl-react + react-native-view-shot : write a third lib that makes it easier

Open gre opened this issue 8 years ago • 3 comments
trafficstars

to recreate this example https://projectseptemberinc.gitbooks.io/gl-react/content/docs/examples/8.html

basically it would be like

<Surface>
  <GLBlur>
    <RasterizeContent>
      <View>.......</View>
    </RasterizeContent>
  </GLBlur>
</Surface>

gre avatar Aug 01 '17 15:08 gre

technically it should be feasible for the RasterizeContent lib to add a texture loader into gl-react that support its instance and would snapshot the thing. also think I should fix https://github.com/gre/react-native-view-shot/issues/48 first so it's a simple use of that Snapshotable.

(RasterizeContent make have whatever different name)

gre avatar Aug 01 '17 15:08 gre

if some content needs to continously refresh, there could be a prop to set that. basically means to call context.glParent.redraw() in a render loop

gre avatar Aug 01 '17 15:08 gre

created https://github.com/gre/react-native-webgl-view-shot but now need to think how things will interoperate

gre avatar Sep 06 '17 13:09 gre