react-native-popup-menu icon indicating copy to clipboard operation
react-native-popup-menu copied to clipboard

how to Change backdrop styling conditional?

Open sagarrabadiya opened this issue 6 years ago • 3 comments

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?

sagarrabadiya avatar Jun 12 '18 10:06 sagarrabadiya

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 avatar Jun 12 '18 11:06 madox2

@madox2 Do you means the backdrop effect can be implemented by set style in custom styles of MenuOptions? Can you give a example?

jordenchang55 avatar Jul 30 '18 03:07 jordenchang55

@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

sagarrabadiya avatar Jul 30 '18 04:07 sagarrabadiya