iOS border radius not working when using transparent border color
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 127k
- Forks
- 25.3k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 4
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the linked Snack on iOS with React Native 0.72.5 and compare the transparent-border case with the screenshots. Trace the iOS view clipping and border-radius behavior; done means the child is clipped to the rounded parent even when the border color is transparent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100