Questions tagged [react-native-calendars]

128 questions
0
votes
1 answer

React Native:How to get the date of the calendar view

I am using React-native-calendar to show the date of the existing booking. I am looking how to get the date of the month after going to previous month of the calendar https://github.com/wix/react-native-calendars i can see they specify at the top a…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
0 answers

React native calendars change selectedDay

I'm developing my react native application. I'm using react native calendars. I want to change selectedDay of agenda when new props arrived to the screen. My code: componentWillReceiveProps(nextProps) { if (this.props !== nextProps) { …
mkEagles
  • 328
  • 3
  • 20
0
votes
0 answers

React native calendar update events for month using onVisibleMonthsChange

Using the calendarList , onVisibleMonthsChange={this.loadItems} does not update markedDates My loadItems function is: loadItems(months) { const { events, eventsForMonth } = this.props; eventsForMonth(events, months); } …
Bomber
  • 10,195
  • 24
  • 90
  • 167
0
votes
1 answer

Incompatible receiver, Map required! (Issue with Android)

I am using this component https://github.com/wix/react-native-calendars. It Works good in iphone but having issue with android. When i open calendar page it gives me an error as Incompatible receiver, Map required! Environment List of Packages…
0
votes
2 answers

Agenda inside header view

I'm using https://github.com/wix/react-native-calendars and I want to have agenda inside my header view. Something like that:
mkEagles
  • 328
  • 3
  • 20
-1
votes
1 answer

Date value out of bound exception in reactnative

I am facing one problem that while using new Date in reactnative. Here is the code: useEffect(() => { if (selectedDate) { let date = new Date(selectedDate); let dateString = new Date(date.getTime() - date.getTimezoneOffset() *…
user2028
  • 163
  • 4
  • 15
  • 40
-1
votes
2 answers

How do create this type of json reponse in React Js (Node Js API)

I got this response from Node Js API, and I want to change the reponse in react js as like below. Node js API Response i got [ { "selected": true, "date": "2021-01-15", "selectedColor": "#2ecc71" }, { …
Karthik
  • 37
  • 2
  • 5
-1
votes
1 answer

Problems after converting class component to function component

I'm getting a few errors after i converted everything in this file to function so i'm able to use hooks. This error "2020-12-22 is not a function i'm getting when I press the date on the calendarStrip component. Call Stack. is telling me the problem…
1 2 3
8
9