Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS border radius not working when using transparent border color #40969

Open
eh2077 opened this issue Oct 14, 2023 · 2 comments
Open

iOS border radius not working when using transparent border color #40969

eh2077 opened this issue Oct 14, 2023 · 2 comments
Labels
Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Needs: Triage 🔍 Newer Patch Available Platform: iOS iOS applications.

Comments

@eh2077
Copy link

eh2077 commented Oct 14, 2023

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

  1. Add a parent container with transparent border color, border radius and overflow: hidden set
      <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>
  1. 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

Screenshot 2023-10-14 at 1 35 18 PM Screenshot 2023-10-14 at 1 30 03 PM
@github-actions
Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.72.6. 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 github-actions bot added the Platform: iOS iOS applications. label Oct 14, 2023
@cortinico cortinico added the Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. label Oct 16, 2023
@faheem-cmd
Copy link

Please add overflow: 'hidden'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Needs: Triage 🔍 Newer Patch Available Platform: iOS iOS applications.
Projects
None yet
Development

No branches or pull requests

3 participants