A
A
Andrey Okhotnikov2019-09-25 16:10:43
React Native
Andrey Okhotnikov, 2019-09-25 16:10:43

TouchableOpacity and position 'absolute'?

There is a TouchableOpacity block with position 'absolute'. It has a high zIndex. Visually, it is located above other blocks, but when you click on it, a click is triggered on those elements that are behind it. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
davidnum95, 2019-09-27
@davidnum95

In pH, z-index works differently than on the web, you need to place TouchableOpacity below all elements it should be above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question