ayooby / react-native-calendar-heatmap

React-native calendar heat-map, inspired by Github's contribution graph
152 stars 31 forks source link

Which package should I use ? #21

Closed juulieen closed 4 years ago

juulieen commented 4 years ago

Got an error when trying to use this package, here what I did :

[...] <CalendarHeatmap endDate={new Date('2019-03-25')} numDays={100} colorArray={['#eee', '#D44B79', '#6B1928', '#9F3251', '#360000']} values={[{ date: '2016-01-01' }, { date: '2016-01-22' }, { date: '2016-01-30' }]} /> [...]

as mentioned in the README.md

but got the same error as #17 and #15. However, on the issues #17, the fix was to use an alternative package name from @WrathChaos I did try it :
- `npm i @freakycoder/react-native-calendar-heatmap`
- Import the component from *react-native-calendar-heatmap* like this : 

[...] import CalendarHeatmap from '@freakycoder/react-native-calendar-heatmap'

[...] <CalendarHeatmap endDate={new Date('2019-03-25')} numDays={100} colorArray={['#eee', '#D44B79', '#6B1928', '#9F3251', '#360000']} values={[{ date: '2016-01-01' }, { date: '2016-01-22' }, { date: '2016-01-30' }]} /> [...]



And it works!

But on the README of this package @freakyCoder/react-native-calendar-heatmap, says to install `react-native-calendar-heatmap` 

I'm a bit lost, can you help me to understand which package should I use?
WrathChaos commented 4 years ago

My forked branch was just for PR. It's been merged. Let me check what is wrong with the original repo.

WrathChaos commented 4 years ago

Oh I got it. @ayooby you need to publish the latest version: 0.2.1

WrathChaos commented 4 years ago

@ayooby Can you add me the npm as a collaborator. I can do it fastly

WrathChaos commented 4 years ago

@juulieen Until ayooby publish the new version, you can use mine.

ayooby commented 4 years ago

Dear @WrathChaos please share with me your NPM username?

WrathChaos commented 4 years ago

Hi @ayooby, It's freakycoder. https://www.npmjs.com/~freakycoder

ayooby commented 4 years ago

@WrathChaos I just sent the invitation. Thank you so much for your help 👍

WrathChaos commented 4 years ago

@WrathChaos I just sent the invitation. Thank you so much for your help 👍

I tried but I could not find the invitation or even publish the new version :( Can you please try to invite me again? @ayooby

ayooby commented 4 years ago

Please check again. @WrathChaos

WrathChaos commented 4 years ago

Yes! Thank you @ayooby.

@juulieen I've published the 0.2.1 version. Can you please try it?

juulieen commented 4 years ago

Thank a lot, I did try it and it's working great! 😄