Skip to content

Invisible content of large View with borderRadius > 0 (Android 7.0, RN >= 0.57.1) #22213

@mefjuu

Description

@mefjuu

Environment

  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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions