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

Agenda backgroundColor #2087

Open
timothycuenat opened this issue Nov 9, 2022 · 6 comments
Open

Agenda backgroundColor #2087

timothycuenat opened this issue Nov 9, 2022 · 6 comments

Comments

@timothycuenat
Copy link

timothycuenat commented Nov 9, 2022

Description

The background color of the ScrollView in the Agenda component cannot be changed.

Expected Behavior

Before this version I was able to change the background color and I need to.

Observed Behavior

The white background color shoud be the same as the calendar background

Environment

  • npm ls react-native-calendars: react-native-calendars@1.1291.1
  • npm ls react-native: react-native@0.70.4

Tested and debugged on Emulator Pixel 5 (Platform 33, Android 12) and on a Android phone (Nokia XR20)

Reproducible Demo

I tested all the color and background color in theme and style Agenda property.

Screenshots

image

@JSimai
Copy link

JSimai commented Nov 10, 2022

This is similar to #2000

I ended up just using the calendar list component and created my own custom agenda component. Allows for a lot more freedom.

@wallacerenan
Copy link

<Agenda
        showClosingKnob
        renderItem={RenderItem}
        items={{
          '2022-11-28': [
            {
              name: 'Renan',
              day: new Date().toISOString().split('T')[0],
              height: 50,
            },
          ],
        }}
        theme={{
          reservationsBackgroundColor: '#fff',
        }}
      />

reservationsBackgroundColor is not typed, use this.

need to fix, Theme interface doesn't export this key

@macasfaj
Copy link

Thank you! you saved my day!

@stale
Copy link

stale bot commented Apr 25, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 25, 2023
@alexanderblackh
Copy link

Can confirm this is still an issue.

@stale stale bot removed the stale label May 26, 2023
@teamclouday
Copy link

This is still not fixed. For Typescript, can use

theme={{
    reservationsBackgroundColor: '#fff',
} as any}

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

6 participants