ayooby / react-native-calendar-heatmap

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

run ios failed #17

Closed JamestheDon closed 4 years ago

JamestheDon commented 4 years ago

Metro bundler is unable to find the main module '/lib/src/CalendarHeatmap.js link to repo: https://github.com/JamestheDon/react-native-heatmap

Screen Shot 2020-03-21 at 2 50 46 PM

tried removing node modules and reinstalling to no effect.

any help would be welcomed. :)

WrathChaos commented 4 years ago

Can you try the example? https://github.com/ayooby/react-native-calendar-heatmap/tree/master/example

JamestheDon commented 4 years ago

The example ended up crashing as well..

I havent tried clearing the metro bundler cache though.

Screen Shot 2020-03-21 at 3 46 56 PM
WrathChaos commented 4 years ago

I'm fixing it :)

WrathChaos commented 4 years ago

Okay, I fixed it. However, @ayooby need to re-publish the new version. Until he does it, you can check the working version with my own npm release:

npm i @freakycoder/react-native-calendar-heatmap

Also, fixed many bugs and updated the example with a fresh one :) @JamestheDon can you try the new one?

JamestheDon commented 4 years ago

working on it! Build is still failing. For some reason Example doesnt want to open in simulator now.

Screen Shot 2020-03-22 at 8 18 45 AM Screen Shot 2020-03-22 at 8 07 33 AM Screen Shot 2020-03-22 at 8 13 42 AM
JamestheDon commented 4 years ago

I also Init'ed a new proj and isntalled your updated pkg. Ran into this:

Screen Shot 2020-03-22 at 8 29 28 AM
WrathChaos commented 4 years ago

@JamestheDon You should follow these steps:

It should work, I've tested it.

JamestheDon commented 4 years ago

Thanks @WrathChaos, that did it!

WrathChaos commented 4 years ago

Awesome :) If you have another problem please feel free to open another issue.