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

[0.77]Border radius with percentages doesn't work in oldArch - Android #49269

Closed
riteshshukla04 opened this issue Feb 7, 2025 · 2 comments
Closed
Labels
Platform: Android Android applications. Type: Invalid This issue does not belong here. Applying this label will cause issue to be closed.

Comments

@riteshshukla04
Copy link
Contributor

riteshshukla04 commented Feb 7, 2025

Description

Border radius with percentages doesn't work in old arch in RN 0.77

Steps to reproduce

  1. Create a new RN app
  2. Add a view with border styling in percentages (like borderRadius:"50%")
  3. Build the app . It should work fine
  4. Turn off the newArch for android
  5. It will break.

React Native Version

0.77.0

Affected Platforms

Runtime - Android

Output of npx react-native info

info Fetching system and libraries information...
System:
  OS: macOS 15.3
  CPU: (8) arm64 Apple M2
  Memory: 114.39 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.13.1
    path: ~/.nvm/versions/node/v22.13.1/bin/node
  Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v22.13.1/bin/yarn
  npm:
    version: 10.9.2
    path: ~/.nvm/versions/node/v22.13.1/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23726.103.2422.12816248
  Xcode:                                                                                               version: 16.2/16C5032a
    path: /usr/bin/xcodebuild                                                                      Languages:
  Java:
    version: 17.0.14
    path: /usr/bin/javac
  Ruby:
    version: 2.7.5
    path: /Users/ritesh.shukla2/.rvm/rubies/ruby-2.7.5/bin/ruby                                    npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:                                                                                                                                                                       wanted: 0.77.0
 installed: 0.77.0      
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:                                                                                             
   hermesEnabled: true
  newArchEnabled: false 
iOS:                                                                                                                                                                      
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs

N/A

Reproducer

https://github.com/riteshshukla04/RNBorderRepro

Screenshots and Videos

*New Arch*

Old Arch

@riteshshukla04
Copy link
Contributor Author

Upon building iOS I figured out that border radius with percentages work on ios in new arch.

  • New Arch
    • Android: Can work
    • iOS: Can work
  • Old Arch
    • Android: Can work (But made not to work)
    • iOS: Cannot work

The behaviour is correct and not an issue. Closing this

@shubhamguptadream11 shubhamguptadream11 added Type: Invalid This issue does not belong here. Applying this label will cause issue to be closed. and removed Needs: Triage 🔍 labels Feb 10, 2025
@react-native-bot
Copy link
Collaborator

Caution

Invalid issue: This issue is not valid, either is not a bug in React Native, it doesn't match any of the issue template, or we can't help further with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android Android applications. Type: Invalid This issue does not belong here. Applying this label will cause issue to be closed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants