Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ListView] Images in ListView blocks rendering? #790

Closed
meetwudi opened this issue Apr 10, 2015 · 2 comments
Closed

[ListView] Images in ListView blocks rendering? #790

meetwudi opened this issue Apr 10, 2015 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@meetwudi
Copy link
Contributor

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

@Iragne
Copy link
Contributor

Iragne commented Apr 15, 2015

@tjwudi The react is based on asyc and threads
so image cannot block direcly the app.

can you provide more information about react version and your code thanks

@brentvatne brentvatne changed the title Images in ListView blocks rendering? [ListView] Images in ListView blocks rendering? May 31, 2015
@brentvatne
Copy link
Collaborator

Closing until we hear back from @tjwudi!

@facebook facebook locked as resolved and limited conversation to collaborators Jul 23, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants