Can't takeSnapshotAsync on Expo.GLView (Android)
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:2
- Comments:19 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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 😃@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.