Skip to content

[QUESTION] Button in renderItem #16

@kaidoj

Description

@kaidoj

Hi,

Thank you for a very good package.

I'm trying to create a custom render item with image and buttons but button onPress events are not triggering. Is it somehow possible? I did try TouchableWithoutFeedback.

 <SmartGallery
      index={index}
      images={images}
      style={styles.container}
      onEndReached={loadMore}
      renderItem={(imageProps) => (
            <View>
               <Image source={blabla} />
               <TouchableOpacity
                   onPress={() => console.log('pressed')}
                >
                   <Text>Button</Text>
               </TouchableOpacity>
            </View>
      )}
      loadMinimal
      loadMinimalSize={2}
      sensitiveScroll={false}
    />

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