In the expo GnonativeModule for iOS, we already handle the OnDestroy event. For consistency, this PR updates Android to also handle the OnDestroy event.
Note: In my testing, I have not been able to get the app to invoke the OnDestroy event, on Android or iOS. On Android, I am able to get the app to invoke the OnActivityDestroys event, but this is for an activity, not the module (and is not symmetric with the module OnCreate).
In the expo
GnonativeModule
for iOS, we already handle theOnDestroy
event. For consistency, this PR updates Android to also handle theOnDestroy
event.Note: In my testing, I have not been able to get the app to invoke the
OnDestroy
event, on Android or iOS. On Android, I am able to get the app to invoke theOnActivityDestroys
event, but this is for an activity, not the module (and is not symmetric with the moduleOnCreate
).