react-native: When one border of View is transparent, all borders are not displayed
Description
When one border of View is transparent, all borders are not displayed
Only Android
Version
0.70.1
Output of npx react-native info
info Fetching system and libraries information…
System:
OS: Windows 10 10.0.19044
CPU: (8) x64 Intel® Core™ i7-7700 CPU @ 3.60GHz
Memory: 6.34 GB / 15.96 GB
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-212.5712.43.2112.8609683
Visual Studio: Not Found
Languages:
Java: 11.0.15 - C:\Program Files\Eclipse Adoptium\jdk-11.0.15.10-hotspot\bin\javac.EXE
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.1 => 0.70.1
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Starting RN
Snack, code example, screenshot, or link to a repository
Code
<View
style={{
width: 100,
height: 100,
borderWidth: 10,
borderRadius: 100,
borderColor: '#FF0000',
borderBottomColor: 'transparent',
justifyContent: 'center',
alignItems: 'center',
}}>
<Text>1</Text>
</View>
<View
style={{
width: 100,
height: 100,
borderWidth: 10,
borderRadius: 100,
borderColor: '#FF0000',
justifyContent: 'center',
alignItems: 'center',
}}>
<Text>2</Text>
</View>
screenshot

About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 12
- Comments: 17 (1 by maintainers)
Took me some to get to the source of the problem and thanks to that found this thread. I found an imperfect quick workaround with using almost transparent color
#00000001orrgba(0, 0, 0, 0.01)This issue was closed because it has been stalled for 7 days with no activity.
Hey all, @brunoro @danilobuerger @zhxlp The issue seems related to fix by @mdvacca in the 0.70 version. Hence, when this condition is removed, everything works as expected. It can be patched(
yarn patch package) unless it will be fixed in an upcoming release. By the way, @mdvacca, could you please clarify why we need this condition on Android?Just saw this on RN 0.71.6