Skip to content

Singleton MapView on RN#524

Open
cristian-situm wants to merge 1 commit into
masterfrom
feature/PRO-4046
Open

Singleton MapView on RN#524
cristian-situm wants to merge 1 commit into
masterfrom
feature/PRO-4046

Conversation

@cristian-situm
Copy link
Copy Markdown
Contributor

No description provided.

@vlkpa
Copy link
Copy Markdown

vlkpa commented Jun 1, 2026

Hi @cristian-situm,

I'm experiencing the same issue this PR aims to solve - multiple WebView instances being created when navigating to a MapView screen in a StackNavigator, which leads to app crashes due to memory exhaustion.

I manually applied the persistOnUnmount changes from this PR (WebViewProvider, PersistentWebView, and the MapView portal logic) to my integration, but unfortunately it didn't resolve the issue. The WebView is still being recreated multiple times when navigating to the map screen.

When rendering the MapView directly as a root page (outside navigation), it works correctly with a single WebView instance. The problem only occurs when it's rendered within a StackNavigator.

Could you please provide guidance on:

  1. When this PR might be merged?
  2. If there are any additional configuration steps needed beyond wrapping the app with WebViewProvider and setting persistOnUnmount: true?

Thank you

@cristian-situm
Copy link
Copy Markdown
Contributor Author

Hi @vlkpa,
Our support team will send you information to help you out with the integration via email.

Thank you,
Cristian

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.

2 participants