You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want your cards to be pressable, you should create them as such.
A modified example component from readme file would look like this:
exportdefaultfunctionYourComponent({style, item, dayIndex, daysTotal}){constonPress=()=>{// do something with `item` given from props};return(<TouchableOpacitystyle={{
...style,// apply calculated styles, be careful not to override these accidentally (unless you know what you are doing)backgroundColor: 'red',borderRadius: 10,elevation: 5,}}onPress={onPress}><Text>{item.title}</Text><Text>{dayIndex} of {daysTotal}</Text></View>);}
I want to show detail of specific item in modal when I click on specific item but onPress event of item is not working
The text was updated successfully, but these errors were encountered: