Skip to content

Agenda half open in mount, after click on a date, it closes properly. #2729

@Etiolate7

Description

@Etiolate7

The agenda seems to be half open in rendering, instead of being close. But once we chose a date, it closes properly to let us see the meeting.

import { StyleSheet, Text, View, TouchableOpacity } from 'react-native'
import React, { Component } from 'react'
import { Calendar, CalendarList, Agenda } from 'react-native-calendars';
import { SafeAreaView } from 'react-native-safe-area-context';


export class AgendaScreen extends Component {
    render() {
        return (
            <SafeAreaView style={styles.container}>
                <Agenda
                    items={{
                        '2025-09-24': [{ name: 'Meeting 1', data: 'Lorem ipsum, or lipsum as it is sometimes known, is dummy text used in laying out print, graphic or web designs. ' }],
                    }}

                    renderItem={(item, isFirst) => (
                        <TouchableOpacity style={styles.item}>
                            <Text style={styles.itemText}>{item.name}</Text>
                            <Text style={styles.itemText}>{item.data}</Text>
                        </TouchableOpacity>
                    )}
                />
            </SafeAreaView>
        )
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        justifyContent: 'center',

    },
    item: {
        backgroundColor: 'lightblue',
        flex: 1,
        borderRadius: 5,
        padding: 10,
        marginRight: 10,
        marginTop: 25,
        paddingBottom: 20
    },
    itemText: {
        color: 'black',
        fontSize: 16,
    },

});


export default AgendaScreen
ScreenRecording_09-24-2025.17-40-17_1.MP4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions