expo: Can't takeSnapshotAsync on Expo.GLView (Android)
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
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 19 (7 by maintainers)
Commits related to this issue
- [universe] Update READMEs in Universe to describe new `bootstrap` flow. Fixes #1371 — committed to expo/expo by deleted user 7 years ago
@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.
@pa-an unfortunately GLViews on Android aren’t snapshotted by takeSnapshotAsync — but we are adding a new snapshot function for GLViews in SDK 26. Will update when that’s released! We should also document this limitation of GLViews…