gnolang / gnonative

Develop for Gno using your app's native language
Apache License 2.0
9 stars 9 forks source link

chore: In expo GnonativeModule for Android, handle event OnDestroy #154

Closed jefft0 closed 1 month ago

jefft0 commented 1 month ago

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).