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 separator line skips every other row #13959

Closed
agersoncgps opened this issue May 13, 2017 · 4 comments
Closed

ListView separator line skips every other row #13959

agersoncgps opened this issue May 13, 2017 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@agersoncgps
Copy link

I am running "react-native": "0.43.4". I searched StackOverflow and found this post describing it as bug with only a hack fix.

Here is my style for the separator:

const styles = StyleSheet.create({
  separator: {
    flex: 1,
    height: StyleSheet.hairlineWidth,
    backgroundColor: '#8E8E8E',
  },
});

Here is my ListView:

  <ListView
            dataSource={this.state.dataSource}
           renderRow={(data) => <View><Text>{data.bb_first_name}</Text></View>}
            renderSeparator={(sectionId, rowId) => <View key={rowId} style={styles.separator} />}
          />

Here is how it renders:
screenshot 2017-05-13 14 41 14

@agersoncgps agersoncgps changed the title ListView separator lines skip every other row ListView separator line skips every other row May 13, 2017
@antsmo
Copy link

antsmo commented May 15, 2017

Just out of curiosity, are you viewing the simulator at 100%? Anything less than that will cause hairline width details not to render correctly because of the downscaling

@hramos
Copy link
Contributor

hramos commented May 15, 2017

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!

@hramos hramos closed this as completed May 15, 2017
@agersoncgps
Copy link
Author

Thanks MyGuySi, that was it!

@antsmo
Copy link

antsmo commented May 16, 2017

@agersoncgps No problem, it's caught me out a few times too!

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 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