Invisible content of large View with borderRadius > 0 (Android 7.0, RN >= 0.57.1)
See original GitHub issueEnvironment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 31.61 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.12.0 - /usr/local/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
react-native: 0.57.4 => 0.57.4
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
AVD: Nexus_5X_API_24 (Android 7.0)
Description
Large <View />
with borderRadius > 0 gets invisible on Android 7.0 (API level 24) using RN >= 0.57.1.
It’s regression, because it rendered correctly using RN 0.57.0.
Reproducible Demo
This is rendered expectedly:
export default class App extends React.Component {
render() {
return (
<ScrollView style={{ flex: 1 }}>
<View style={{ borderRadius: 10, backgroundColor: "violet", height: 731 }} />
</ScrollView>
);
}
}
However after increasing the height, the violet content disappears, but ScrollView is aware of it so can be scrolled vertically.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:14 (2 by maintainers)
Top Results From Across the Web
border radius in react native not working - Stack Overflow
So my problem is most of the phones shows the border radius in app But some phones are showing it rectangular <View> as...
Read more >Make Circular Image in React Native using Border Radius
We will use borderRadius style to make Curcular Image / Round Shape Image. ... StyleSheet, View, Image, Text } from 'react-native'; const App ......
Read more >Border Radius - Tailwind CSS
For example, use md:rounded-lg to apply the rounded-lg utility at only medium screen sizes and above. <div class="rounded md:rounded-lg"> ...
Read more >border-radius - CSS-Tricks
The border-radius property takes between one and four length or percentage values, where one value sets the radius for all four corners at ......
Read more >View Style Props - React Native
borderRadius . If the rounded border is not visible, try applying overflow: 'hidden' as well. Type ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.
The “⏪Old Version” label will be removed automatically once you edit your original post with the results of running
react-native info
on a project using the latest release.It is not related to the
Old Version
you sneaky @react-native-bot