udacifitness-calendar-fix-of-fixed
v10.1.1
Published
Fork of Wix's react-native-calendars because my use case is a 1 off and doesn't make sense for core. && there was a lot of depricated lib
Downloads
4
Readme
Fork of https://github.com/wix/react-native-calendars.
import UdaciFitnessCalendar from "udacifitness-calendar-fix-of-fixed";
class History extends Component { state = { ready: false };
renderItem = ({ today, ...metrics }, formattedDate, key) => ( {today ? ( {today} ) : ( <TouchableOpacity onPress={() => this.props.navigation.navigate("EntryDetail", { entryId: key }) } > )} );
render() { const { entries } = this.props; const { ready } = this.state;
if (ready === false) {
return <AppLoading />;
}
return (
<UdaciFitnessCalendar
items={entries}
renderItem={this.renderItem}
renderEmptyDate={}
/>
);
} }