question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't takeSnapshotAsync on Expo.GLView (Android)

See original GitHub issue

I used takeSnapshotAsync on the View contain Expo.GLView component

  • IOS: working.
  • Android: Anything on screen is captured except GLView component.

Here is my example https://snack.expo.io/B1Mu3hZIz. Could you please help me on this? if it is impossible, please suggest me another way to take image of Expo.GLView

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
tsapetacommented, Mar 30, 2018

@pa-an @yingdongzhang SDK 26 has been released, so you can now update Expo in your app and then do glViewRef.takeSnapshotAsync() which is designed for GLView and works on both platforms. See docs for more details. Feel free to ask if you have any questions 😃

1reaction
yingdongzhangcommented, Mar 2, 2018

@pa-an

If you are in a rush and looking for an alternative, checkout this plugin:

https://github.com/kevinstumpf/react-native-signature-pad

It doesn’t work with the latest react-native out of the box, but in the issues you’ll find how to fix it. I’ve successfully got it working on both iOS and Android. Hope it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GLView - Expo Documentation
GLView. expo-gl provides a View that acts as an OpenGL ES render target, useful for rendering 2D and 3D graphics. On mounting, an...
Read more >
How to make Expo.takeSnapshotAsync work on Android
I've tried to find a working example, but cannot. I think the issue is I'm not defining which view I to screen shot...
Read more >
expo-three - npm
Welcome to Expo & Three.JS. Tools for using three.js to create universal 3D experiences | Try it in the browser! GitHub Actions status....
Read more >
@expo/config-plugins | Yarn - Package Manager
A library for Expo config plugins. json, expo, react-native, react. readme. expo sdk. Expo. Expo SDK version Forums Discord License: MIT Downloads.
Read more >
How to use the expo-gl.GLView.takeSnapshotAsync function ...
To help you get started, we've selected a few expo-gl.GLView.takeSnapshotAsync examples, based on popular ways it is used in public projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found