Skip to content

How can I center images in the view?  #79

Open

Description

@emptyopen

Currently this code:

<View style={{height:360, alignItems:'center', justifyContent:'center', flexDirection:'row', flex:1, borderWidth:2, borderColor:'grey'}}>
  <ImageSlider
    images={images}
    customSlide={({ index, item, style, width }) => (
      <View key={index} style={[style]}>
        <Image source={ item } style={styles.picture} />
      </View>
    )}
  />
</View>

results in:

image

Why is the image not centered in the View?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions