Closed dchersey closed 4 years ago
yeah definitely possible, you can use a react-native PanResponder to capture the touch events & do logic with it.
There is a good example here which @gre just published. Pretty cool 👍
@superandrew213 thanks for mentioning, yeah I think that's the best example I have today regarding PanResponder vs gl-react , for the voronoi exemple, you can probably combine that responseToTouchPosition
with a port of the code of http://alexbeutel.com/webgl/voronoi.html
Thanks for the help! I'm checking out those links; great stuff!
Possibly dumb question: (I'm new to GL):
Is there a way to capture/bind to touch events that would trigger Javascript code that would affect the GL graphics? For example, an interactive voronoi treemap rendered in GL?
Many thanks!