镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Android] Container borderRadius covered by sub view #8649

Closed

Description

@ldn0x7dc

qq20160708-0 2x
The sub view does not respect container border radius.
Problem exists only on Android (on iOS, using overflow: 'hidden' will solve it).
I'm using react-native 0.28.
Example:

<View
  style={{height: 40, borderRadius: 20, backgroundColor: 'red', paddingHorizontal: 5, overflow: 'hidden'}}>
  <View style={{flex: 1, backgroundColor: '#0000ff66'}}/>
</View>

Activity

  1. SudoPlz commented on Jul 21, 2016

    @SudoPlz
    Contributor

    I have the same exact problem using an Image child..! Only in Android as well. I'm using react-native 0.29

  2. mwiley commented on Aug 29, 2016

    @mwiley

    I'm having this problem on 0.32.

  3. mwiley commented on Sep 5, 2016

    @mwiley

    #3198

    This looks like the same issue.

  4. lacker commented on Nov 30, 2016

    @lacker
    Contributor

    Let's use #3198 instead - it has more discussion and the two issues are dupes. TLDR work is in progress to fix this

  5. locked as resolved and limited conversation to collaborators on Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions