From b243d343fa741de94537d8535f76714ff2985101 Mon Sep 17 00:00:00 2001 From: shubhamguptadream11 Date: Tue, 16 Jul 2024 04:39:21 -0700 Subject: [PATCH] fix: background color fix when border is dotted and dashed (#45430) Summary: This PR fixes these issues: https://github.com/facebook/react-native/issues/42289, https://github.com/facebook/react-native/issues/45368 ## Changelog: [IOS] [FIXED] - Message In iOS for old/new architecture when we are trying to pass borderStyle other than 'solid' then in this **Old Arch file** https://github.com/facebook/react-native/blob/2eb7bcb8d9c0f239a13897e3a5d4397d81d3f627/packages/react-native/React/Views/RCTView.m#L807 **New Arch file** https://github.com/facebook/react-native/blob/2eb7bcb8d9c0f239a13897e3a5d4397d81d3f627/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm#L652 file useCoreAnimationBorderRendering is coming as nil since borderStyle passed is not **solid**. Due to which else case block executes and there we are applying backgroundColor as nil. I just removed that hardcoded check for sold style and make sured that it is now working now with all three borderStyle 'dotted' | 'solid' | 'dashed' for Text and View both