react-native-popup-menu
react-native-popup-menu copied to clipboard
how to Change backdrop styling conditional?
i have MenuProvider component at top level and i have given backdrop styling ex black and 0.3 opacity now in some part of app i dont need black background in backdrop, Also i cant use 2nd MenuProvider in component it messes design so is there any way i can set the backdrop style on the fly using ref or something?
Hi, currently it is only possible to change backdrop styles by passing it to MenuProvider. You can change it there when you open your menu.
However it would be nice style backdrop for example using custom styles of MenuOptions. Anyway PRs are welcome.
@madox2
Do you means the backdrop effect can be implemented by set style in custom styles of MenuOptions?
Can you give a example?
@jordenchang55 it is not possible yet to give per menu based backdrop so currently you iu have to give it as global backdrop style only