View onLayout supposed to interfere with the zIndex?

Share on facebook
Share on google
Share on twitter
Share on linkedin
organic-n-local-seo

https://www.reddit.com/r/reactnative/comments/ec3jto/view_onlayout_supposed_to_interfere_with_the/

Debugging this thing only to find out that my view zIndex changed just because i started using the View's onLayout handler, only to be fixed when I explicitly made the View's style to have high zIndex (otherwise the view would be hidden behind others).

Why its written no where that onLayout is messing up with the zIndex? or is it a byproduct of something else?

submitted by /u/wulfgar4president
[link] [comments]

Sign up for our Newsletter

Agree to our privacy policy.