MarceloPrado / flash-calendar

The fastest React Native calendar 📆⚡
https://marceloprado.github.io/flash-calendar/
MIT License
1.05k stars 31 forks source link

Performance for Android #67

Open RusselUc opened 5 days ago

RusselUc commented 5 days ago

Hi.

Is there any way to improve performance on Android? I've noticed that when using Calendar.List on Android, it takes a bit longer than it does on iOS. On iOS, it appears almost instantly, while on Android, there's a brief moment when the screen is blank.

import { Calendar, toDateId } from "@marceloterreiro/flash-calendar";
import React from "react";
import { View } from "react-native";

const index = () => {
  const today = toDateId(new Date());
  return (
    <View style={{ flex: 1 }}>
      <Calendar.List
        calendarMinDateId={today}
        calendarInitialMonthId={today}
        onCalendarDayPress={(date) => console.log(date)}
      />
    </View>
  );
};
export default index;