You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a react-native app, using the react-native-calendars Agenda feature.
I initialize the agenda with two items, containing a title and a description. Initially, the description is hidden.
I want to have the ability to click on an agenda item, and it expands, revealing it's description, and upon clicking again, it condenses to it's original state.
I have achieved this functionality with the first agenda item. However, upon clicking the second agenda item, nothing happens. The only way to display the description of the second item, is to click it, and then click away to a different date, and then click back. And the same process is required to hide its description.
I figured it was an issue with state, but it doesn't seem to make sense that it works for the first agenda item and not the second.
Description
I'm working on a react-native app, using the react-native-calendars Agenda feature.
I initialize the agenda with two items, containing a title and a description. Initially, the description is hidden.
I want to have the ability to click on an agenda item, and it expands, revealing it's description, and upon clicking again, it condenses to it's original state.
I have achieved this functionality with the first agenda item. However, upon clicking the second agenda item, nothing happens. The only way to display the description of the second item, is to click it, and then click away to a different date, and then click back. And the same process is required to hide its description.
I figured it was an issue with state, but it doesn't seem to make sense that it works for the first agenda item and not the second.
Here is my tsx script:
Environment
npm ls react-native-calendars
:└── [email protected]
npm ls react-native
:├─┬ @react-native-community/[email protected]
│ └── [email protected] deduped
├─┬ @react-navigation/[email protected]
│ ├─┬ @react-navigation/[email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├─┬ @react-navigation/[email protected]
│ └── [email protected] deduped
├─┬ @react-navigation/[email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ @expo/[email protected]
│ │ └── [email protected] deduped
│ ├─┬ @react-navigation/[email protected]
│ │ └── [email protected] deduped
│ └─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
└─┬ [email protected]
└─┬ @react-native/[email protected]
└── [email protected] deduped
Also specify:
I've tried on both of these:
Reproducible Demo
Screenshots
The text was updated successfully, but these errors were encountered: