hotwired / hotwire-native-android

Hotwire Native for Android
MIT License
39 stars 5 forks source link

Fix crash/timing issues when the `Activity` is recreated #73

Closed jayohms closed 2 days ago

jayohms commented 2 days ago

Follow up to: https://github.com/hotwired/hotwire-native-android/pull/72

Additionally, this allows an app to listen for when navigators are ready for navigation after the Activity is (re)created.

class MainActivity : HotwireActivity() {
    override  fun onNavigatorReady(navigator: Navigator) {
        // custom code for navigation
    }
}