Skip to content

data not updating when using state #16

@GustavPS

Description

@GustavPS

The Row/Grid is not updating when the data list is a state that can update.

        <View style={[styles.container, props.style]}>
            <Text style={styles.rowTitle}>{props.title}</Text>
                <Row
                    data={rows}
                    attributes={{
                        width: width,
                        height: height,
                    }}
                    style={{ width: '100%', height: styleHeight, marginTop: useBackdrop ? -10 : 0 }}
                    onFocus={(item) => onFocus(item, item.isFirstItem)}
                    onPress={(item) => onPress(item)}
                />

        </View>

If I change the rows state the list is still empty. If I however change rows to a regular variable with default values then items are showing

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