Skip to content

[ListView] Images in ListView blocks rendering? #790

@meetwudi

Description

@meetwudi

I have a ListViewItem.js which have an inner image

<TouchableHighlight underlayColor="#ccc" onPress={this._navigateToDetail}>
  <View style={styles.container}>
    <View style={styles.leftCol}>
      <Image style={styles.couponImage} source={{uri: 'http://placehold.it/80x80'}}/>
    </View>
    <View style={styles.rightCol}>
      <Text style={styles.couponTitle}>{this.props.coupon.title}</Text>
      {companyTitle}
    </View> 
  </View>
</TouchableHighlight>

The internet access was very slow, so the <Image/> seems to block the list rendering process. List cannot show up.

I tried to console.log in **ListViewItem#render`, and it only output once. It was expected to output six times.

Also I tried to reset contents in simulator, but it doesn't work. Is there any solution for this? Do I have to manually fetch image? @vjeux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions