Open xvonabur opened 6 years ago
I think this is the correct behavior, isn't it? It should not have the ripple effect if it's not pressable (missing onPress and onLongPress). If not so, please share a link to Material Design docs. Thank you.
Why do we show visual feedback to user if there is no onPress?
@xotahal, @janziemba Why are you thinking about the case with no onPress? I didn't say about it. I do not see ripple effect, regarding passing function to onPress or not.
@xotahal, @janziemba Please, reopen it. I can provide a simple demo if needed.
There are some changes in
ListItem
which causes such behaviour:They were introduced with this commit
After reverting commit above ripple effect is back.
My setup:
package.json:
"react-native-material-ui": "^1.20.0" "react": "16.2.0", "react-native": "0.52.2"