TouchableOpacity only click on non-transparent area of an Image


#1

From my understanding, the way you would make an Image clickable is to wrap it with a TouchableOpacity. While that does work, is there a way to have it so you can only click non-transparent area of the image (I mean the pixels that are at 0 opacity). Like If I wanted to make a puzzle game where you can click the edges of each piece but they overlap. (ex: https://qph.fs.quoracdn.net/main-qimg-634ebeb72e993b2fe2e6980e70127342)?


closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.