TouchableOpacity/Highlight doesn't work inside a <View> that has alignItems specified #26033
Labels
Bug
Component: TouchableOpacity
Stale
There has been a lack of activity on this issue and it may be closed soon.
I have a spot in my app where I load a image that takes up a big portion of the screen. I have a container view that "reserves" the height to prevent any weird flash while I load the needed data to determine which image to show.
I recently got a request to add a click event to this image. I did what is recommended and wrapped it an TouchableHighlight. Suddenly nothing was being displayed.
Here's a canned example of what I am trying to do.
https://snack.expo.io/@bobber205/sadistic-graham-crackers
This is only reproducible in .60.x
Summary: TouchableOpacity/Highlight doesn't work as a single child in View that has
alignItems
specified.React Native version:
The text was updated successfully, but these errors were encountered: