react-native
react-native copied to clipboard
Separator not being rendered
Description
There are a few issues about this topic, but none of them have a solution:
- https://github.com/facebook/react-native/issues/28575
- https://github.com/facebook/react-native/issues/22927
- https://github.com/facebook/react-native/issues/13959
I've attached a simple FlatList snack showing the separator isn't rendering sometimes. It can be reproduced both on iOS and Android. The easier way to do it is to decrease display size on a11y, but it can be reproduced on default as well.
React Native Version
0.71.4
Output of npx react-native info
Expo 47 from snack.
Steps to reproduce
Add a separator to a FlatList with hairlineWidth or 1.
Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/@diegolmello/f6c27a
Note missing separators on 2-3, 7-8, etc

| :warning: | Newer Version of React Native is Available! |
|---|---|
| :information_source: | You are on a supported minor version, but it looks like there's a newer patch available. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
It's still an issue on 0.71.4.
yes, i have checked it, it is working fine in android but does not working in ios i have attached a expo snack here
https://snack.expo.dev/qfiFMQBSCb?platform=ios
Still a problem on Android (we are on 0.70.4).
Have temporarily set everything 1dp for Android platform.
Going to try an updated version of this old PR that never got merged as a patch later
https://github.com/facebook/react-native/pull/30481/files
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.