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.

Agenda loading forever.

See original GitHub issue

I created an <Agenda /> component with the code below, but the agenda show an spin loading forever. I created the project with create-react-native-app.

import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Facebook, WebBrowser } from 'expo';
import { Linking } from 'react-native';
import { Card, CardSection, Button } from './common';
import { loginWithFacebook } from '../actions';
import { Agenda } from 'react-native-calendars';

@connect(null, { loginWithFacebook })
class LoginStudent extends Component {
  static navigationOptions = {
    title: 'Login Student',
  };

  render() {
    return (
      <Agenda 
        items={{'2012-05-22': [{text: 'item 1 - any js object'}],
            '2012-05-23': [{text: 'item 2 - any js object'}],
            '2012-05-24': [],
            '2012-05-25': [{text: 'item 3 - any js object'}],
	}} 
        loadItemsForMonth={(mongh) => {console.log('trigger items loading')}}
        onDayPress={(day)=>{console.log('day pressed')}}
				selected={'2012-05-16'} 
        renderItem={item => <View />}
        renderDay={(day, item) => <View />}
        renderEmptyDate={() => <View />}
        rowHasChanged={(r1, r2) => (r1.text !== r2.text)}
        hideKnob={true}
        theme={{}}
        style={{}}
       />
    );
  }
}

export default LoginStudent;

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:46 (12 by maintainers)

github_iconTop GitHub Comments

88reactions
gopidoncommented, Jun 23, 2018

The documentation is wrong, the prop should be renderEmptyData and NOT renderEmptyDate

22reactions
lfoliveir4commented, Oct 20, 2019

this props = renderEmptyData={() => { return null }} resolved for me!

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google calendar not loading? Here is how to fix it. - TimeTackle
1. Check your settings · 2. Re-install Google calendar · 3. Enable storage · 4. Clear cache.
Read more >
Loading :: Global Agenda General Discussions
After a minute or so, I get thrown back to the login screen. I doubt they have permanently shut down the servers since...
Read more >
Calendar Loads Very Slowly - Microsoft Community
I've just downloaded Outlook 2010 and the calendar loads very slowly - sometimes taking over a minute to load appointments.
Read more >
Agenda: Widget+ not loading: Issues with Agenda: Widget+ - App ...
We hope that the following solutions help so that you can load Agenda: Widget+ and the download doesn't take forever. If you know...
Read more >
Why is my Android Calendar widget stuck saying Loading..?
Hi everyone. One of the main reasons I have a smartphone is because I like being able to open my phone and see...
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