Search code examples
reactjsreact-nativeshadow

Cant i change shadow color of components for android in expo react native?


the shadow property of the expo react native for android only has elevation and opacity , cant i change the color of the shadow somehow for my components in my app

other shadow properties are deprecated, i want to apply all styling to my shadow like offset, color, etc


Solution

  • shadow property for android is limited compared to ios. android uses elevation property but this doesn't allow to customize shadow color directly. however, you can achieve similar effects by using react-native-shadow-2 library.