[Bug] 0.76 - border-radius with non-integer values causes faded bottom padding
オープン
まだ誰も着手していません。
0.76
Issue: Author Provided Repro
Needs: Attention
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
I have just updated to RN 0.76 and seeing some weird behavior with non integer values when applying corner radius. It creates a bottom padding that has a faded color.
Steps to reproduce
Create a simple view and apply the following values:
return (
<View className="h-full bg-indigo-900 p-4">
<View
style={{
marginVertical: 400,
borderTopLeftRadius: 10,
borderTopRightRadius: 10,
backgroundColor: 'white',
padding: 14,
}}
/>
</View>
The output should look like this:
But instead it looks like this:
React Native Version
0.76.0
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
OS: macOS 15.0.1
CPU: (11) arm64 Apple M3 Pro
Memory: 223.63 MB / 36.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.13.1
path: ~/.local/share/mise/installs/node/20/bin/node
Yarn:
version: 4.5.1
path: ~/.local/share/mise/installs/node/20/bin/yarn
npm:
version: 10.5.2
path: ~/.local/share/mise/installs/node/20/bin/npm
Watchman:
version: 2024.10.21.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/osp/.local/share/mise/installs/ruby/3/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.0
- iOS 18.0
- macOS 15.0
- tvOS 18.0
- visionOS 2.0
- watchOS 11.0
Android SDK:
API Levels:
- "33"
- "34"
- "35"
Build Tools:
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
- 35.0.0
System Images:
- android-33 | Google Play ARM 64 v8a
Android NDK: 26.1.10909125
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12483815
Xcode:
version: 16.0/16A242d
path: /usr/bin/xcodebuild
Languages:
Java:
version: 21.0.3
path: /usr/bin/javac
Ruby:
version: 3.3.1
path: /Users/osp/.local/share/mise/installs/ruby/3/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.0
wanted: ^15.0.0
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.0
wanted: 0.76.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: false
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Stacktrace or Logs
*
Reproducer
https://github.com/ospfranco/border-radius-bug
Screenshots and Videos
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、iOS 上で React Native 0.76.0 を使ってリンクされた border-radius-bug の再現コードを実行し、その出力を期待されるスクリーンショットおよび実際のスクリーンショットと比較します。次に、整数以外の border-radius 値に対する iOS のレンダリングパスを追跡し、その後、薄く表示される下部の padding が表示されなくなり、提供された例が引き続き正しくレンダリングされることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react-native
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100