react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Separator not being rendered

Open diegolmello opened this issue 2 years ago • 2 comments

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

diegolmello avatar Mar 08 '23 17:03 diegolmello

: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.

github-actions[bot] avatar Mar 08 '23 17:03 github-actions[bot]

It's still an issue on 0.71.4.

diegolmello avatar Mar 08 '23 18:03 diegolmello

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

priyaWedo avatar Mar 10 '23 07:03 priyaWedo

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

nabilfreeman avatar Jun 20 '23 14:06 nabilfreeman

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.

github-actions[bot] avatar Dec 18 '23 05:12 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Dec 25 '23 05:12 github-actions[bot]