iOS border radius not working when using transparent border color
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.3k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 4
説明
Description
iOS border radius not working when using transparent border color
React Native Version
0.72.5
Output of npx react-native info
System:
OS: macOS 13.0
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 2.30 GB / 16.00 GB
Shell:
version: 5.8.1
path: /bin/zsh
Binaries:
Node:
version: 16.15.1
path: ~/.nvm/versions/node/v16.15.1/bin/node
Yarn:
version: 1.21.1
path: /usr/local/bin/yarn
npm:
version: 8.11.0
path: ~/.nvm/versions/node/v16.15.1/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.11.3
path: /Users/erich/.rvm/gems/ruby-2.7.5/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.1
- iOS 16.1
- macOS 13.0
- tvOS 16.1
- watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode:
version: 14.1/14B47b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.16.1
path: /usr/local/opt/openjdk@11/bin/javac
Ruby:
version: 2.7.5
path: /Users/erich/.rvm/rubies/ruby-2.7.5/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.5
wanted: 0.72.5
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Steps to reproduce
- Add a parent container with transparent border color, border radius and
overflow: hiddenset
<View
style={{
margin: 150,
borderWidth: 4,
borderColor: 'transparent',
borderRadius: 16,
overflow: 'hidden',
height: 80,
width: 60,
}}>
<View
style={{
width: '100%',
height: '100%',
backgroundColor: 'red',
}}></View>
</View>
- On iOS, the child view is not clipped by the parent container.
Snack, screenshot, or link to a repository
See snack: https://snack.expo.dev/@eh2077/4c412a?platform=ios
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、React Native 0.72.5 を使用して iOS でリンク先の Snack を実行し、透明な境界線のケースをスクリーンショットと比較します。iOS ビューのクリッピングと border-radius の挙動を追跡します。完了の条件は、境界線の色が透明な場合でも、子要素が角丸の親要素に合わせてクリップされることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, react-native
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100