react-native-picker-select icon indicating copy to clipboard operation
react-native-picker-select copied to clipboard

Can you add an onDismiss that fires after selection or done prop?

Open weisssean opened this issue 8 years ago • 5 comments

I want to pop a dialog when a certain option is selected. There isn't a simple way to do that. An onDismiss function would really help.

weisssean avatar Oct 21 '18 14:10 weisssean

The main issue is I wanna show another popup with a text prompt and can't do it while the other one is showing.

weisssean avatar Oct 21 '18 15:10 weisssean

Have you tried modalProps.onDismiss?

lfkwtz avatar Oct 21 '18 21:10 lfkwtz

I did, (iOS I tried it by passing modalProps={onDismiss:()=>{ debugger; }} but it never hit. Not much documentation either. Seems like a pretty important function for an api, perhaps you should allow passing it from your component.

weisssean avatar Oct 21 '18 23:10 weisssean

Are you using v5?

lfkwtz avatar Oct 22 '18 10:10 lfkwtz

I was using 4.4.0, upgraded to 5 and it works now. Thanks.

weisssean avatar Oct 22 '18 20:10 weisssean