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
I have created two custom event renderers for my component
For month view:
constrenderMonthCircular=(data)=>{if(data.name===events[0].name){return(<Viewstyle={{backgroundColor:theme.colors.primary,borderRadius:10,marginTop:'5%',height:'70%',alignContent:'center',alignItems:'center',justifyContent:'center'}}><Textstyle={{color:'white'}}>Termine heute - {events.length}</Text></View>)}returnnull}
The Calendar component should render elements and choose onEventPress action based on current active view - I am using state to manage that.
Surprisingly enough only the monthly onEventPress works - no matter how I change the structure of the returned daily component - onPress is not doing anything at all - even if I make those custom events identical
Could you please explain if there's a misnderstanding about Calendar component functionality from my side or some kind of error
EDIT - While in my case it is not painful to migrate all onPressEvent functionality to the TouchableOpacity onPress method I am still curious why it does not work)
The text was updated successfully, but these errors were encountered:
I have created two custom event renderers for my component
For month view:
For day view:
The Calendar component should render elements and choose onEventPress action based on current active view - I am using state to manage that.
Surprisingly enough only the monthly onEventPress works - no matter how I change the structure of the returned daily component - onPress is not doing anything at all - even if I make those custom events identical
Could you please explain if there's a misnderstanding about Calendar component functionality from my side or some kind of error
Calendar component code:
EDIT - While in my case it is not painful to migrate all onPressEvent functionality to the TouchableOpacity onPress method I am still curious why it does not work)
The text was updated successfully, but these errors were encountered: