shadow props doesn't work with <Image>
See original GitHub issueReact Native version:
info Fetching system and libraries information...
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz
Memory: 2.78 GB / 20.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 12.4.0 - ~/.nvm/versions/node/v12.4.0/bin/node
Yarn: 1.16.0 - ~/.nvm/versions/node/v12.4.0/bin/yarn
npm: 6.9.0 - ~/.nvm/versions/node/v12.4.0/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 27, 28, 29
Build Tools: 27.0.3, 28.0.3, 29.0.0
System Images: android-27 | Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-29 | Intel x86 Atom_64
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.0 => 0.60.0
Steps To Reproduce
- init with v0.60
- add shadow props to
<Image/>
Describe what you expected to happen:
Snack, code example, or link to a repository:
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
React-native shadow not appearing - Stack Overflow
A handy approach is to add shadow to a parent container with no backgroundColor set. That is due to this issue https://github.com/facebook/react ...
Read more >Image - React Native
A React component for displaying different types of images, including network images, static resources, temporary local images, and images ...
Read more >box-shadow - CSS-Tricks
Using a semi-transparent color like rgba(0, 0, 0, 0.4) is most common, and a nice effect, as it doesn't completely/opaquely cover what it's...
Read more >text-shadow - CSS: Cascading Style Sheets - MDN Web Docs
The text-shadow CSS property adds shadows to text. It accepts a comma-separated ... Report problems with this compatibility data on GitHub ...
Read more >Box Shadow in React Native - Javatpoint
There is a problem with using React Native's shadow props if weuse styled-components: The shadow is a set on top of the element,...
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 Free
Top 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
@RobinCsl thanks for your answer, after add
overflow: 'visible'
shadow is work well butborderRadius
is broke, if I removeoverflow: 'visible'
shadow not workborderRadius
is well@dulmandakh Demo Code :
I just created project with CRNA and replaced content with above in App.js file. Note : Shadow properties doesn’t show up on
<Image>
element unless I giveoverflow: "visible"
And If i add overflow in style then Border Radius properties doesn’t work. This is bug with<Image>
element & still present, kindly reopen the issue 😃