A framework for building native applications using React
Do not pass ReactContext to getViewManagersMap (#44379)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44379 A common pattern to implement `ViewManagerOnDemandReactPackage` is to use a `getViewManagersMap` helper. If we capture `ReactApplicationContext` there, we will indefinitely retain the the very first ReactApplicationContext, and break/leak across reloads. Instead we should pass the `ReactApplicationContext` whenever we construct the ViewManager. Changelog: [Internal] Reviewed By: RSNara Differential Revision: D56838427 fbshipit-source-id: 76583dd7f5564ed29f0dbfcef33d8d288cbb90e0
P
Pieter De Baets committed
88de74b2dc6f816e1a36e5d43b5db74ddd9caf4e
Parent: bbb52c5
Committed by Facebook GitHub Bot <[email protected]>
on 5/2/2024, 8:25:18 PM