Files
react-native/packages/react-native
Pieter De Baets ec1ab73674 Avoid retaining TurboModuleManager in AppDelegate (#37104)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37104

The AppDelegate (and other similar classes) only need to construct the TurboModuleManager for intialization purposes, and should not retain it beyond that. TurboModuleManager retains each of the TurboModule instances and through the new binding mechanism, also JSI pointers, which are invalid beyond the lifetime of the JS context.

Changelog: [iOS] Changed AppDelegate template to avoid retaining TurboModuleManager.

Reviewed By: sammy-SC, cipolleschi

Differential Revision: D45310066

fbshipit-source-id: 4199c9973d832cc07fd32b94f2dcbaa72f4d3920
2023-04-27 04:14:29 -07:00
..
2023-04-27 03:15:14 -07:00
2023-04-21 04:52:54 -07:00