Skip to content

Position absolute view is not covering elevation view #19894

@2dxgujun

Description

@2dxgujun

Environment

Environment:
OS: macOS High Sierra 10.13.4
Node: 8.2.1
Yarn: 1.5.1
npm: 6.0.0
Watchman: 4.9.0
Xcode: Xcode 9.4 Build version 9F1027a
Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed)
react: ^16.2.0 => 16.2.0
react-native: ^0.55.4 => 0.55.4

Description

The <Text> display below the view with red background, see #15823

Reproducible Demo

image

render() {
  return (
    <View style={{ flex: 1 }}>
      <View
          style={{ height: 50, backgroundColor: 'red', elevation: 4 }}
      />
      <View style={StyleSheet.absoluteFill}>
        <Text>HELLO</Text>
      </View>
    </View>
  )
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidAndroid applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions