Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. const renderItem = item => <CalendarEvent item={item} />;
  2.  
  3. const Calendar = (props, context) => {
  4. const theme = getTheme(props, context);
  5. return (
  6. <View style={{ flex: 1 }}>
  7. <NetworkConnectivity />
  8. <Agenda
  9. items={R.merge(props.emptyDates, props.items)}
  10. renderItem={renderItem}
  11. renderEmptyDate={renderEmptyDate}
  12. rowHasChanged={rowHasChanged}
  13. theme={theme}
  14. onDayPress={props.setEmptyDate}
  15. />
  16. <ActionButton icon="event" onPress={props.openFormUserEvent} />
  17. </View>
  18. );
  19. };
Add Comment
Please, Sign In to add comment