Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position absolute view is not covering elevation view #19894

Closed
3 tasks done
2dxgujun opened this issue Jun 26, 2018 · 5 comments
Closed
3 tasks done

Position absolute view is not covering elevation view #19894

2dxgujun opened this issue Jun 26, 2018 · 5 comments
Labels
Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@2dxgujun
Copy link

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>
  )
}
@patrickkempff patrickkempff added the Platform: Android Android applications. label Jul 19, 2018
@Versus2017
Copy link

Versus2017 commented Aug 1, 2018

I have the same problem, and the same react-native version with you.

@Versus2017
Copy link

Is there any solutions about that?

@megalithic
Copy link

@Versus2017 we are having a similar issue with iOS, removing Stylesheet.absoluteFill fixes it for us. In a couple cases we just had to replace that style with height: '100%'.

@stale
Copy link

stale bot commented Dec 16, 2018

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 16, 2018
@stale
Copy link

stale bot commented Dec 24, 2018

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Dec 24, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Dec 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Android Android applications. Stale There has been a lack of activity on this issue and it may be closed soon.
4 participants