Open deck2k opened 1 month ago
Dont make the Card component self-closed Put some content inside and the onPress prop should work as expected
This behavior also applies for the Button component
I haven't explored the reason for this behavior in the component code but this is how it works
Hope it solve your problem
excellent! There I modified the code and it worked perfectly.
Thank you very much for the quick answer!
@FouadMagdy01 do you mean to reproduce this bug don't send children?
@FouadMagdy01 do you mean to reproduce this bug don't send children?
Yes, When not providing the children component in React Native paper Components the pressing functionality doesn't work at all
You can even notice that if you have Button
component, the ripple effect on android will not trigger and also the onPress function
My code is
<Card style={[styles.buttonCard, styles.buttonColor]} onPress={() => navigation.navigate('Property', { ---some properties-- })}>