react-native-agenda-view icon indicating copy to clipboard operation
react-native-agenda-view copied to clipboard

onItemPress function not called

Open BigWillieStyle opened this issue 7 years ago • 2 comments

I modified the example by adding "onItemPress" function to one of the list elements. The function is not being called. Not sure is there is an implementation issue in my changes. Below are snippets of the changes I made.

I modified the example with the following in the list: { header: '10:00 - 10:30 am', description: 'Amazing Workshop', startDate: Date.now() + 2 * 10 * 60, endDate: Date.now() + 3 * 10 * 60, onItemPress: () => this.onDetailViewer() }

Code Snippet:

export default class AgendaViewer extends Component { constructor(props) { super(props); }

onDetailViewer= () => { this.props.navigation.navigate("MediaViewer"); };

render() { const { navigation } = this.props; return( <View style={styles.container}> <AgendaView items={list} /> </View>); } }

BigWillieStyle avatar May 24 '17 05:05 BigWillieStyle