BugiDev / react-native-calendar-strip

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

Feature: Add underline mark to dates #190

Closed Vasault closed 4 years ago

Vasault commented 4 years ago

i've been trying several ways to make this, and at this point i'm not entirely sure if is possible

Captura de Pantalla 2020-05-29 a la(s) 12 23 05

the line below the day, and the shadow below the container

peacechen commented 4 years ago

A new/enhanced prop would be required to add that feature. markedDates is a similar prop that could be extended to support underlining. It should be a relatively straight-forward change to add underlining to markedDates. This is a community supported library and your contributions are welcome. Please submit a PR and I'll review promptly.

peacechen commented 4 years ago

The underline feature has been added to the master branch. You have the option to pass an array or callback to markedDates. https://github.com/BugiDev/react-native-calendar-strip#markeddates-example

Until a new version is published, point 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",
    ...
  }
Vasault commented 4 years ago

thank you peacechen