Open simomau opened 6 years ago
Any thoughts? I've been waiting quite long.
@simomau can you give a try to 2.4.0 ? it's supposed to fix that
@gre I did test it with version 2.4.0 but issue still persists.
@gre Any news on this?
@gre I noticed that ARTs components some reason is drawn on top of every other component. I disabled view.draw method for testing in ViewShot.java and those ART components were still drawn and were in a final outcome. Don't know if this helps at all.
I can't make @react-native-community/art
working at all. it's not rendering anything 🤔
meanwhile, i've put that ART example into example project
example project reproduce the problem if anyone want to help.
I got a similar problem, but with rive-react-native
.
Rive element is considered as TextureView
, and it seems that ViewShot takes a bitmap of all elements, and THEN apply TextureView
's above.
So, if I have something like this :
<Rive [...] />
<Text>hello</Text>
with an absolute positioning, on my screen I have the Text above the Rive, but on the screenshot the Rive is above the Text...
Is there a way to recreate elements in the good order ?
Thanks !
bug report
Version & Platform
Platform: Android
Expected behavior
Taken image to be same as shown on screen
Actual behavior
ART element seems to be in wrong order on android. I have ART shape (green line) and then on top of it is orange box (View element). On left you'll see android emulator which has elements in wrong order in taken snapshot. And on right is iOS which is working as expected.
Steps to reproduce the behavior