doomsower / react-native-modal-popover

React-Native pure JS popover that uses Modal
MIT License
322 stars 45 forks source link

show drop shadow on Android #28

Closed mwcm closed 6 years ago

mwcm commented 6 years ago

hey there! found this commit when searching the repo for "shadow", just wondering if there is a way to style the Popover in order to enable drop shadow on Android. Have tried to passing in my own popoverStyle to Popover, based on your IOS specific code in that commit, with no success.

popoverStyle contained:

shadowColor: 'black',
shadowOffset: { width: 0, height: 2 },
shadowRadius: 2,
shadowOpacity: 0.4,
backgroundColor: 'transparent',

Can definitely find another way to do this, just wondering if there's a supported method, thanks for your time :)

mwcm commented 6 years ago

figured it out, probably not news to most, but for anyone else in my situation:

shadow-props are listed as IOS only

instead we used elevation set to 3