react-native-button-component
react-native-button-component copied to clipboard
boxShadow is not applied to buttonStyle prop
My test code :
const styles = StyleSheet.create({
button: {
shadowColor: "red",
shadowOffset: {
width: 0,
height: 9,
},
shadowOpacity: 0.8,
shadowRadius: 12.35,
elevation: 19,
}
});
<ButtonComponent
buttonStyle={styles.button}
>
</ButtonComponent>
p.s: wonderful job :)
what about try style prop?
The shadow is visible but it seems there is an overflow: hidden on the button

but adding overflow: visible to the buttonStyle props makes it work ;) I think this tip could be added to the doc ?
Thanks for the quick answer and keep it up the good job with the plugin, it works like a charme.
