Closed GunjanSkry closed 4 years ago
Thanks @GunjanSkry for the reproducible Snack. The state in Scroller.js wasn't properly initialized in this case. I pushed a fix that you can try out by pointing to this repo directly in package.json
. Run npm install
after changing it.
"dependencies": {
"react-native-calendar-strip": "https://github.com/BugiDev/react-native-calendar-strip",
...
}
I have tried the way mention above, I removed node_modules and changed package.json, but I am still getting that error in my project.
npm often has problems with caching when pulling from a Github repo. Use these steps to clear the cache:
npm install
npm start -- --reset-cache
Ctrl-C
.npm start
(or react-native run-...
for native projects).The --reset-cache
flag requires @react-native-community/cli-tools:
npm install @react-native-community/cli-tools --global
The fix has been published in 2.0.7
When I set minDate prop, I am getting following error,
undefined is not an object (evaluating 's[Math.min(u+o-1,s.length-1)].date')
Here is a snack example which produces this error, (https://snack.expo.io/@gunjans/react-native-calendar-strip)