Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalendarList initialDate not scrolling and replacing all months #2466

Open
cruzms opened this issue May 7, 2024 · 0 comments
Open

CalendarList initialDate not scrolling and replacing all months #2466

cruzms opened this issue May 7, 2024 · 0 comments

Comments

@cruzms
Copy link

cruzms commented May 7, 2024

Description

When initialDate prop is set to CalendarList all visible months change to the initial

Expected Behavior

The months list should display correctly

Observed Behavior

image

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-calendars: react-native-calendars@1.1304.1
  • npm ls react-native: 0.66.5

Also specify:

  1. Device/emulator/simulator & OS version:

Emulator: 8_Fold-out_API_30
Device: Redmi Note 7 Android 10

Reproducible Demo

import React from "react";
import { CalendarList } from "react-native-calendars";

export default function CalendarTest() {
  return (
    <CalendarList
      initialDate="2024-08-11"
      markedDates={{
        "2024-08-10": { selected: true },
      }}
      onDayPress={(e) => {
        console.log(e);
      }}
    />
  );
}

Screenshots

wix.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant