Why react native components don't work
React native onPress does not work, there could be many reasons. When you are trying to printing log on the console, you need to pass a function.
But many beginners might just pass a line instead of returning a function. Beginners might do it like below
The above line won't print any logs during the rendering.
If you have too many components within the parent view. You might need to include zIndex.