Skip to content

data not updating when using state #16

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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