react-native-calendars-event : can't fetchAll eventsEvent binding on dynamically created elements?jQuery Event Keypress: Which key was pressed?jQuery multiple events to trigger the same functionCalendar Recurring/Repeating Events - Best Storage MethodHide keyboard in react-nativeWhat is the difference between using constructor vs getInitialState in React / React Native?What is the difference between React Native and React?How to change the source of image by using setNativeProps in react nativeReact (Native) and Component Life Cycle and Event Handlingfetch data in react native from mlab
Addressing unnecessary daily meetings with manager?
How do native German speakers usually express skepticism (using even) about a premise?
Salt, pepper, herbs and spices
How quality assurance engineers test calculations?
Why do we need common sense in AI?
What's the point of having a RAID 1 configuration over incremental backups to a secondary drive?
What happened to people in unsafe areas during the Blip?
Swapping "Good" and "Bad"
What are the original Russian words for a prostitute?
When did "&" stop being taught alongside the alphabet?
How to drill holes in 3/8" thick steel plates?
Is a request to book a business flight ticket for a graduate student an unreasonable one?
Great Unsolved Problems in O.R
Which type of trumpet is typically used to perform Bach Brandenburg 2
What is the right approach to quit a job during probation period for a competing offer?
Managing and organizing the massively increased number of classes after switching to SOLID?
Would it be appropriate to sand a floor between coats of poly with a handheld orbital sander?
Why weren't bootable game disks ever common on the IBM PC?
Is English unusual in having no second person plural form?
Is there a strong legal guarantee that the U.S. can give to another country that it won't attack them?
Extract string from each line of a file
Concept of the static keyword from the perspective of embedded C
Elf (adjective) vs. Elvish vs. Elven
Apex code to find record diff between two dates (to call API only when needed)
react-native-calendars-event : can't fetchAll events
Event binding on dynamically created elements?jQuery Event Keypress: Which key was pressed?jQuery multiple events to trigger the same functionCalendar Recurring/Repeating Events - Best Storage MethodHide keyboard in react-nativeWhat is the difference between using constructor vs getInitialState in React / React Native?What is the difference between React Native and React?How to change the source of image by using setNativeProps in react nativeReact (Native) and Component Life Cycle and Event Handlingfetch data in react native from mlab
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm using: https://github.com/wmcmahan/react-native-calendar-events/. I don't understand how to fetch the events of a calendar.
When I execute RNCalendarEvents.findCalendars(), I obtain a list of keys like _40, 62 ... I'm unable to retrieve properties like title, color, from that point. I tried all that I know, and for the values of the keys (not all, some or empty), I got : 0.
By the way, I can save an event, and see it on the calendar's phone, but I'm not able to find it after.
I searched on the web for an explanation or to see examples, but nothing helped me.
EDIT
Some days after my question, I worked on another part of my app.
My goal is to read an XML file to put it in a database.
For now, I just installed react-native-fs. So, my first test is to open an XML file and show the content...and I look at my XML file, I look on my easier code of the world to open the document, and absolutely nothing else is in the class, the result displays ... the ids of the calendar of the phone :
Ah ah ah
I can't stop laughing...
the code is :
data = RNFS.readFile('c:/test.xml');
alert(stringify(data));
and the content of my file is datas in xml..not those numbers.
CONCLUSION
Days after this question, I went back to this problem. In fact, I didn't understand how works promises. So a part of the answer could be something like :
import React,Component from 'react';
import ScrollView, StyleSheet, Text, View, from 'react-native';
import RNCalendarEvents from 'react-native-calendar-events';
export class FormCalendars extends Component
static navigationOptions =
title: 'Calendars',
;
constructor(props)
super(props);
this.state =
render : false,
findEvents()
RNCalendarEvents.fetchAllEvents(startDate, endDate, calendars);
itemsCalendar =[] ;
componentDidMount()
RNCalendarEvents.findCalendars().then(calendars =>
this.itemsCalendar = calendars.map((item) => (
<View key=item.id style=backgroundColor:item.color>
<Text>item.id</Text>
<Text>item.title</Text>
<Text>item.type</Text>
<Text>item.source</Text>
<Text>item.isPrimary.toString()</Text>
<Text>item.allowsModification</Text>
<Text>item.allowedAvailabilities</Text>
</View>
))
this.setState( render :true );
);
render()
return (
<ScrollView style=flex:1>
this.itemsCalendar
</ScrollView>
);
And the same mechanism can be used to fetch events...
Thank you for reading, if it can help!
react-native events calendar
add a comment |
I'm using: https://github.com/wmcmahan/react-native-calendar-events/. I don't understand how to fetch the events of a calendar.
When I execute RNCalendarEvents.findCalendars(), I obtain a list of keys like _40, 62 ... I'm unable to retrieve properties like title, color, from that point. I tried all that I know, and for the values of the keys (not all, some or empty), I got : 0.
By the way, I can save an event, and see it on the calendar's phone, but I'm not able to find it after.
I searched on the web for an explanation or to see examples, but nothing helped me.
EDIT
Some days after my question, I worked on another part of my app.
My goal is to read an XML file to put it in a database.
For now, I just installed react-native-fs. So, my first test is to open an XML file and show the content...and I look at my XML file, I look on my easier code of the world to open the document, and absolutely nothing else is in the class, the result displays ... the ids of the calendar of the phone :
Ah ah ah
I can't stop laughing...
the code is :
data = RNFS.readFile('c:/test.xml');
alert(stringify(data));
and the content of my file is datas in xml..not those numbers.
CONCLUSION
Days after this question, I went back to this problem. In fact, I didn't understand how works promises. So a part of the answer could be something like :
import React,Component from 'react';
import ScrollView, StyleSheet, Text, View, from 'react-native';
import RNCalendarEvents from 'react-native-calendar-events';
export class FormCalendars extends Component
static navigationOptions =
title: 'Calendars',
;
constructor(props)
super(props);
this.state =
render : false,
findEvents()
RNCalendarEvents.fetchAllEvents(startDate, endDate, calendars);
itemsCalendar =[] ;
componentDidMount()
RNCalendarEvents.findCalendars().then(calendars =>
this.itemsCalendar = calendars.map((item) => (
<View key=item.id style=backgroundColor:item.color>
<Text>item.id</Text>
<Text>item.title</Text>
<Text>item.type</Text>
<Text>item.source</Text>
<Text>item.isPrimary.toString()</Text>
<Text>item.allowsModification</Text>
<Text>item.allowedAvailabilities</Text>
</View>
))
this.setState( render :true );
);
render()
return (
<ScrollView style=flex:1>
this.itemsCalendar
</ScrollView>
);
And the same mechanism can be used to fetch events...
Thank you for reading, if it can help!
react-native events calendar
add a comment |
I'm using: https://github.com/wmcmahan/react-native-calendar-events/. I don't understand how to fetch the events of a calendar.
When I execute RNCalendarEvents.findCalendars(), I obtain a list of keys like _40, 62 ... I'm unable to retrieve properties like title, color, from that point. I tried all that I know, and for the values of the keys (not all, some or empty), I got : 0.
By the way, I can save an event, and see it on the calendar's phone, but I'm not able to find it after.
I searched on the web for an explanation or to see examples, but nothing helped me.
EDIT
Some days after my question, I worked on another part of my app.
My goal is to read an XML file to put it in a database.
For now, I just installed react-native-fs. So, my first test is to open an XML file and show the content...and I look at my XML file, I look on my easier code of the world to open the document, and absolutely nothing else is in the class, the result displays ... the ids of the calendar of the phone :
Ah ah ah
I can't stop laughing...
the code is :
data = RNFS.readFile('c:/test.xml');
alert(stringify(data));
and the content of my file is datas in xml..not those numbers.
CONCLUSION
Days after this question, I went back to this problem. In fact, I didn't understand how works promises. So a part of the answer could be something like :
import React,Component from 'react';
import ScrollView, StyleSheet, Text, View, from 'react-native';
import RNCalendarEvents from 'react-native-calendar-events';
export class FormCalendars extends Component
static navigationOptions =
title: 'Calendars',
;
constructor(props)
super(props);
this.state =
render : false,
findEvents()
RNCalendarEvents.fetchAllEvents(startDate, endDate, calendars);
itemsCalendar =[] ;
componentDidMount()
RNCalendarEvents.findCalendars().then(calendars =>
this.itemsCalendar = calendars.map((item) => (
<View key=item.id style=backgroundColor:item.color>
<Text>item.id</Text>
<Text>item.title</Text>
<Text>item.type</Text>
<Text>item.source</Text>
<Text>item.isPrimary.toString()</Text>
<Text>item.allowsModification</Text>
<Text>item.allowedAvailabilities</Text>
</View>
))
this.setState( render :true );
);
render()
return (
<ScrollView style=flex:1>
this.itemsCalendar
</ScrollView>
);
And the same mechanism can be used to fetch events...
Thank you for reading, if it can help!
react-native events calendar
I'm using: https://github.com/wmcmahan/react-native-calendar-events/. I don't understand how to fetch the events of a calendar.
When I execute RNCalendarEvents.findCalendars(), I obtain a list of keys like _40, 62 ... I'm unable to retrieve properties like title, color, from that point. I tried all that I know, and for the values of the keys (not all, some or empty), I got : 0.
By the way, I can save an event, and see it on the calendar's phone, but I'm not able to find it after.
I searched on the web for an explanation or to see examples, but nothing helped me.
EDIT
Some days after my question, I worked on another part of my app.
My goal is to read an XML file to put it in a database.
For now, I just installed react-native-fs. So, my first test is to open an XML file and show the content...and I look at my XML file, I look on my easier code of the world to open the document, and absolutely nothing else is in the class, the result displays ... the ids of the calendar of the phone :
Ah ah ah
I can't stop laughing...
the code is :
data = RNFS.readFile('c:/test.xml');
alert(stringify(data));
and the content of my file is datas in xml..not those numbers.
CONCLUSION
Days after this question, I went back to this problem. In fact, I didn't understand how works promises. So a part of the answer could be something like :
import React,Component from 'react';
import ScrollView, StyleSheet, Text, View, from 'react-native';
import RNCalendarEvents from 'react-native-calendar-events';
export class FormCalendars extends Component
static navigationOptions =
title: 'Calendars',
;
constructor(props)
super(props);
this.state =
render : false,
findEvents()
RNCalendarEvents.fetchAllEvents(startDate, endDate, calendars);
itemsCalendar =[] ;
componentDidMount()
RNCalendarEvents.findCalendars().then(calendars =>
this.itemsCalendar = calendars.map((item) => (
<View key=item.id style=backgroundColor:item.color>
<Text>item.id</Text>
<Text>item.title</Text>
<Text>item.type</Text>
<Text>item.source</Text>
<Text>item.isPrimary.toString()</Text>
<Text>item.allowsModification</Text>
<Text>item.allowedAvailabilities</Text>
</View>
))
this.setState( render :true );
);
render()
return (
<ScrollView style=flex:1>
this.itemsCalendar
</ScrollView>
);
And the same mechanism can be used to fetch events...
Thank you for reading, if it can help!
react-native events calendar
react-native events calendar
edited Apr 10 at 23:26
Lux Aeterna
asked Mar 25 at 17:05
Lux AeternaLux Aeterna
126 bronze badges
126 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55343037%2freact-native-calendars-event-cant-fetchall-events%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55343037%2freact-native-calendars-event-cant-fetchall-events%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown