Skip to content

Warning: Failed prop type: Invalid prop children supplied to CardStack. #101

@mrosendin

Description

@mrosendin

Getting this error

        <CardStack
          loop
          initialIndex={0}
          verticalSwipe={false}
          renderNoMoreCards={() => !loading && (
            <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
              <Text style={{ fontWeight: '700', fontSize: 18, color: 'gray' }}>No more cards :(</Text>
            </View>
          )}
          ref={swiper}
          style={{ flex: 1 }}
          onSwipedRight={onSwipedRight}
          onSwipedLeft={onSwipedLeft}
        >
          {!loading && cards.map((item, index) => (
            <Card key={item.id}>
              <CardItem
                hasActions
                imageUrl={item.imageUrl}
                name={item.title}
                description={item.description}
                score={item.score}
                swiper={swiper}
              />
            </Card>
          )}
        </CardStack>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions