BugiDev / react-native-calendar-strip

Easy to use and visually stunning calendar component for React Native.
MIT License
939 stars 327 forks source link

Typescript linting errors in index.d.ts #214

Closed subrapak closed 3 years ago

subrapak commented 4 years ago

subrapak commented 4 years ago

When running yarn test with v 2.0.8, typescript throws up errors for multiple props to be passed into CalendarStrip. Disabling linting and/or typescript checks for the file doesn't seem to be effective. Issue was finally solved by reverting the package version to 2.0.5.

(NB: changed versions in package.json file, deleted node modules folder and reinstalled all packages. Set to not upgrade version. In package.json:

"dependencies": {
    ...
   "react-native-calendar-strip": "2.0.5",
   ...
}
peacechen commented 4 years ago

Thanks for reporting this. Would you submit a PR to fix the TS definitions?