Reputation: 1839
I have a TouchableOpacity contained inside an Image which I am using to present a background for my application.
The issue is when I'm trying to align my TouchableOpacity to something like center or flex-end it does not work inside an Image tag. The TouchableOpacity simply disappears...
Demonstration of the issue:
Here I tried with a View instead of an Image It works...
Upvotes: 2
Views: 1244
Reputation: 1839
I realised the issue.
Must set:
width: null,
height: null,
to the Image tag.
Upvotes: 1