[Android] Shadow cropped on the bottom
See original GitHub issueThe ActionButton component is at the bottom of a view with flex 1, as shown below:
<View style={styles.container}>
// ...Other stuff
<ActionButton buttonColor="#519989" />
</View>
Screenshot attached of the shadow getting cropped at the bottom.
May not be related, but if I set offsetY={0}
, the button is actually about 20 pixels above the top of the window.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Elevation shadow is clipped - android - Stack Overflow
Your shadows may be getting clipped by the View's bounds. Try adding padding to the bottom of the button. If the button sits...
Read more >Create Shadows and Clip Views - Android Developers
Shadows are drawn by the parent of the elevated view, and thus subject to standard view clipping, clipped by the parent by default....
Read more >Button shadow gets cropped on left and right #76 - GitHub
I have difficulty getting it to work, discussed it with the native Android programmer in our team. The way Android renders the elevation...
Read more >Imageview Elevation: Shadow Is Cropped At The Bottom
The problem is that a shadows does not work with React Native in Android. Get code examples like "flatlist in react native" instantly...
Read more >how to: drop shadow on clipped element - CodePen
filter is applied on parent of clipped element, but this parent has either some text content, a border , a box-shadow or a...
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
You can provide some extra bottom-padding in case of android that should cover the shadow beneath the action bottom.
Same Here