GithubHelp home page GithubHelp logo

Comments (7)

kcfgl avatar kcfgl commented on May 2, 2024

Update: I didn't set the markedDates to 'interactive.'

But the middle dates still do not fill in. Does this mean I would have to supply all the dates in a date range to have them all filled in? Is there any easier way to do this, especially if someone wants to select a range that spans many months.

Thanks again.

from react-native-calendars.

tautvilas avatar tautvilas commented on May 2, 2024

Hi, yes, currently you have to mark each day and do the day range calculations inside your app

from react-native-calendars.

kcfgl avatar kcfgl commented on May 2, 2024

@tautvilas Rats. But totally understandable. I know this is outside the scope of your component, but I'm sure you're very familiar with the options to do the ranges. I think moment.range OR d3-time. From a performance standpoint, would you suggest either (or something different?). No worries if you dont have time to respond.

from react-native-calendars.

tautvilas avatar tautvilas commented on May 2, 2024

Yes there were several requests to do this range calculation logic in this component, but currently I think it makes sense not to do it here. I want this component to stay date-library agnostic. You can choose any date library you want and use it in your project. I think moment.js is a pretty good lib to use these days.

from react-native-calendars.

kcfgl avatar kcfgl commented on May 2, 2024

@tautvilas Thanks for being so responsive. You've done a great job with this and I appreciate it! Went with moment.js and its working great.

from react-native-calendars.

tautvilas avatar tautvilas commented on May 2, 2024

Thanks for your support :)

from react-native-calendars.

lazaronixon avatar lazaronixon commented on May 2, 2024

https://github.com/lazaronixon/react-native-date-range-picker

from react-native-calendars.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.