mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c19c6cef3f
Summary: Requiring legacy native modules fails in bridgeless mode because they use the batched bridge, so we need to check for turbomodules first to avoid crashing. In D15703655 I reversed the order of this check for everyone, but this had some unintended side effects (everyone got turbomodules). This time I'm just using my flag to check for bridgeless mode so we can bail out of legacy native modules instead. Reviewed By: fkgozali Differential Revision: D15857106 fbshipit-source-id: 9d33161ae059e7a357f135c82b6865f4d2a57add