react / react/react-native

iOS - borderStyle: 'dashed' and 'dotted' no longer works in combination with overflow: hidden in 0.76

Đang mở
#48,078 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Issue: Author Provided Repro Platform: iOS Resolution: PR Submitted
Ngôn ngữ chính
C++
Star
127k
Fork
25.3k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
4

Mô tả

Description

After upgrading to expo 52 and react-native 0.76.3 I noticed some of my dashed borders had disappeared in some cases on iOS. On further investigation, I discovered that dashed borders no longer work when borderStyle: "dashed" | "dotted" are used in combination with overflow: "hidden" or overflow: "scroll". Instead of a dashed or dotted border, it shows a solid border.
Dotted and dashed borders work correctly with overflow: "visible"
Dotted and dashed borders also work correctly in android.

I took a cursory look through the source code, but couldn't see the issue - that being said, if someone can point me in somewhat the right direction, I'd be happy to take a swing at a fix.

Steps to reproduce
  1. Install the application and launch ios emulator
  2. look at the code in the stylesheet for the two items
  3. look at the missing borderStyle
Screenshot 2024-12-03 at 12 27 00 PM
React Native Version

0.76.3

Affected Platforms

Runtime - iOS

Output of npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 14.5
  CPU: (16) x64 Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
  Memory: 181.07 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.19.0
    path: ~/.nvm/versions/node/v18.19.0/bin/node
  Yarn:
    version: 1.22.22
    path: /usr/local/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v18.19.0/bin/npm
  Watchman:
    version: 4.9.0
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.10.0
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.1
      - iOS 18.1
      - macOS 15.1
      - tvOS 18.1
      - visionOS 2.1
      - watchOS 11.1
  Android SDK: Not Found
IDEs:
  Android Studio: 4.1 AI-201.8743.12.41.6953283
  Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 18.0.1.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/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:
    installed: 0.76.3
    wanted: 0.76.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: false
Stacktrace or Logs
no logs
Reproducer

https://github.com/jorjordandan/borderIssue

Screenshots and Videos

No response

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với reproducer borderIssue được liên kết và so sánh việc render viền nét đứt và nét chấm trên iOS khi dùng overflow: hidden hoặc scroll so với visible. Truy vết đường dẫn render viền của React Native trên iOS để xác định vì sao các trường hợp này trở thành viền liền nét. Hoàn thành khi viền nét đứt và nét chấm được render chính xác với các giá trị overflow bị ảnh hưởng mà không gây hồi quy trên Android hoặc trong hành vi overflow visible.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
ios, react-native
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.