discussions-and-proposals icon indicating copy to clipboard operation
discussions-and-proposals copied to clipboard

Modal onDismiss support for Android

Open bernhardoj opened this issue 11 months ago • 7 comments

This PR proposes to add Modal onDismiss support for the Android platform.

A rendered version of the proposal can be read here

bernhardoj avatar Mar 04 '24 03:03 bernhardoj

For context, we previously had a PR to add the onDismiss support for Android, but it was reverted due to an internal codebase that relies on the event not being fired.

With this proposal, I hope we can discuss how to add the onDismiss support for Android properly.

cc: @cipolleschi

bernhardoj avatar Mar 04 '24 03:03 bernhardoj

but it was reverted due to an internal codebase that relies on the event not being fired.

That's correct. I believe we won't be able to easily implement onDismiss for Android as we already have apps out in the wild abusing this lack of implementation. Potentially the best way forward is to create a new onModalDismiss property and deprecate the onDismiss one + with a proper migration path.

Just to set expectation, @cipolleschi will be off for the whole month of March. This RFC can't move forward without a champion from Meta, and I won't be able to take on this work as we're currently already 100% full rolling out 0.74 so we'll have to wait to move this forward, sorry for that.

cortinico avatar Mar 05 '24 11:03 cortinico

Potentially the best way forward is to create a new onModalDismiss property and deprecate the onDismiss one + with a proper migration path.

That's a good idea to prevent breaking changes. I was thinking that perhaps we can add an enableDismissAndroid props, but this would just add more platform-specific props.

This RFC can't move forward without a champion from Meta, and I won't be able to take on this work as we're currently already 100% full rolling out 0.74 so we'll have to wait to move this forward, sorry for that.

Sorry, I'm not familiar with the process. Do you mean I need to wait for the other Meta member to lead this RFC or you are the one who will lead it but will wait until the 0.74 release is done?

@cortinico

bernhardoj avatar Mar 06 '24 07:03 bernhardoj

Do you mean I need to wait for the other Meta member to lead this RFC or you are the one who will lead it but will wait until the 0.74 release is done?

We'd need to find someone from Meta that is interested in driving this forward. Both @cipolleschi and me are essentially off till mid April. We could resume the work on this front afterwards

cortinico avatar Mar 06 '24 11:03 cortinico

I see. Thanks for the clarification.

bernhardoj avatar Mar 06 '24 12:03 bernhardoj

@cortinico @cipolleschi Are you back from OOO? Can we push this proposal now?

shubham1206agra avatar Apr 22 '24 13:04 shubham1206agra

@cortinico @cipolleschi Can you please look into this?

shubham1206agra avatar Jul 03 '24 16:07 shubham1206agra