Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lifecycle and refcount issue when navigating pages #219

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

HayesGordon
Copy link
Contributor

Fixes #212

TODO:
This is hotfix. A solution needs to be investigated to keep ReactNative and Android in sync for future changes.

}

override fun createObserver(): LifecycleObserver {
dependencies = listOfNotNull(controller, rendererAttributes.assetLoader)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok - so the todo is basically to hook into one source of truth for these dependencies, rather than copying what RiveAnimationView does here, is that right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly! Once RN uses the latest Android.

@HayesGordon HayesGordon merged commit ed11794 into main Dec 22, 2023
1 check passed
@HayesGordon HayesGordon deleted the fix-lifecycle branch December 22, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App crash when going back from nested navigation
2 participants