wix / react-native-calendars

React Native Calendar Components 🗓️ 📆
MIT License
9.52k stars 2.95k forks source link

WARN ReactImageView: Image source "null" doesn't exist #2482

Open geoffcfchen opened 3 months ago

geoffcfchen commented 3 months ago

Description

When using the CalendarProvider component from react-native-calendars on Android, I receive a warning ReactImageView: Image source "null" doesn't exist, regardless of the children components (ExpandableCalendar and TimelineList) being commented out or not. This warning does not appear on iOS, and all attempts to ensure that all image sources are correctly provided have not resolved the issue.

Expected Behavior

I expected that the CalendarProvider would render without any warnings related to image sources, especially when no children components are being rendered that explicitly require external image files.

Observed Behavior

The warning ReactImageView: Image source "null" doesn't exist appears every time the CalendarProvider is used in the component, despite the absence of any direct image references in the component or its immediate children when they are commented out.

WARN ReactImageView: Image source "null" doesn't exist

Environment

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

react-native-calendars@1.1304.1 react-native@0.73.6

Additional Observations:

The warning persists even when ExpandableCalendar and TimelineList are commented out. The issue is specific to Android; no such warning appears on iOS. All image paths have been verified, and default images have been provided where conditional rendering might leave an image source undefined.

Device:

Galaxy A50. Android version 11

Screenshots

Screenshot_20240620-104143_Vetcation

pablo-snz commented 3 months ago

I experienced the same issue. In my case, the warning appears to be related to the showTodayButton prop in the CalendarProvider component.