question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Events not showing up in react-big-calendar

See original GitHub issue

I have a bug in my application, for me I did everything correctly, still the events won’t show up in the calendar.

import BigCalendar from 'react-big-calendar';
import 'react-big-calendar/lib/css/react-big-calendar.css';
import moment from 'moment';
import localizer from 'react-big-calendar/lib/localizers/globalize'

class ProfileLeftPanel extends React.Component {
  constructor(props) {
    super(props);
    BigCalendar.momentLocalizer(moment);
  }
  render(){
    const events = [
      {
    title: 'All Day Event very long title',
    startDate: new Date(2018, 1, 1),
    endDate: new Date(2018, 1, 2),
  },
]
    return(
      <div className="panel">
        <Container>
          <h4>Container</h4>
          <Row className="profile-left-row">
           <div>
            <BigCalendar
                    {...this.props}
                    events={events}
                    views={['month', 'agenda']}
                    step={60}
                    defaultDate={new Date(2018, 3, 1)}
            />
            </div>
          </Row>
          </Container>
      </div>
    )
  }
}

export default ProfileLeftPanel

The event tab is completely empty. Thanks in advance!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
mikailbayramcommented, Feb 11, 2019

I just solved it by changing my date format from

new Date(date)
moment(date)._d

Thanks anyway!

3reactions
8ctopotamuscommented, Mar 5, 2018

I have them set, but this still isn’t working on Iphone safari for some reason. Working fine on Android chrome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic setup of react-big-calendar events not showing
I have the calendar displaying on the page. The pagination is working and I have no errors in my console. However none of...
Read more >
Events not showing up in react-big-calendar #675 - GitHub
I have a bug in my application, for me I did everything correctly, still the events won't show up in the calendar. ......
Read more >
react-big-calendar - npm
Calendar! with events. Latest version: 1.5.2, last published: 2 months ago. Start using react-big-calendar in your project by running `npm i ...
Read more >
Add a Calendar to a React App with react-big-calendar
With the react-big-calendar library, we can add a calendar to a React app. ... With both examples, we should see a calendar with...
Read more >
react-big-calendar onclick event - You.com | The AI Search ...
An events calendar component built for React and made for modern browsers (read: not IE) and uses flexbox over the classic tables ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found