react / react/react-native

border stroke of `StyleSheet.hairlineWidth`not always rendered

オープン
#58,054 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

API: StyleSheet Needs: Triage :mag: Type: New Architecture
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

a border stroke of StyleSheet.hairlineWidth is not drawn when the view lands at certain absolute Y offsets, while a plain background fill with the identical height (height: StyleSheet.hairlineWidth) renders at every offset.

Steps to reproduce
  1. Launch the repro
  2. Compare the two columns - the left one would have missing lines
React Native Version

0.87.0

Affected Platforms

Runtime - iOS

Areas

Fabric - The New Renderer

Output of npx @react-native-community/cli info
System:
  OS: macOS 26.6.1
  CPU: (11) arm64 Apple M3 Pro
  Memory: 134.08 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 24.18.0
    path: /Users/oleksiibulenok/.nvm/versions/node/v24.18.0/bin/node
  Yarn:
    version: 1.22.22
    path: /Users/oleksiibulenok/.nvm/versions/node/v24.18.0/bin/yarn
  npm:
    version: 11.16.0
    path: /Users/oleksiibulenok/.nvm/versions/node/v24.18.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.5
      - iOS 26.5
      - macOS 26.5
      - tvOS 26.5
      - visionOS 26.5
      - watchOS 26.5
  Android SDK:
    API Levels:
      - "34"
      - "35"
      - "36"
    Build Tools:
      - 34.0.0
      - 35.0.0
      - 36.0.0
    System Images:
      - android-35 | Google Play ARM 64 v8a
      - android-36 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.26094.121.2512.13991807
  Xcode:
    version: 26.6/17F113
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.14
    path: /Users/oleksiibulenok/Library/Java/JavaVirtualMachines/jbr-17.0.14/Contents/Home/bin/javac
  Ruby:
    version: 2.7.6
    path: /Users/oleksiibulenok/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.2.0
    wanted: 20.2.0
  react:
    installed: 19.2.3
    wanted: 19.2.3
  react-native:
    installed: 0.87.0
    wanted: 0.87.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
Stacktrace or Logs
N/A
MANDATORY Reproducer

https://github.com/abulenok/HairlineBorderRepro

Screenshots and Videos
Image

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、iOS 上の React Native 0.87.0 に対して必須の HairlineBorderRepro を実行し、異なる絶対 Y オフセットでボーダーのストロークと背景の塗りつぶしを比較します。StyleSheet.hairlineWidth ボーダーの Fabric/New Renderer パスを追跡し、再現プログラムに示されているすべてのオフセットでボーダーがレンダリングされることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native
領域
mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。