U
U
Ulug2019-10-07 14:01:34
React Native
Ulug, 2019-10-07 14:01:34

How to correctly set element depth in react-native?

Good afternoon to everyone who reads, I'm making an application on RN, and I had a problem with elements overlapping other elements, for example: I made a completely custom modal window and when it appears in the middle you can see the button that should be under it, the second example is also with a button and react navigation bottom tabs button should be above the middle tab menu, but it is below it.
Thank you all for your attention in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2019-10-07
@RomReed

Have you tried using a style to place your elements on different levels?

{
 zIndex:6
}

add modal window index 5 and button 6 then the button will be above the window and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question