mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This PR is a follow-up after https://github.com/facebook/react-native/issues/46181 this change makes sure that if the `require.resolve` fails we still fall back to the old behavior. The `require.resolve` was failing for local builds of OOT platforms (because in OOT platforms mono repo `react-native` is renamed to `react-native-platform-name`) ## Changelog: [IOS] [FIXED] - Fallback to old resolve mechanism when node require fails to resolve react native path Pull Request resolved: https://github.com/facebook/react-native/pull/46432 Test Plan: CI Green Reviewed By: christophpurrer Differential Revision: D62577183 Pulled By: cipolleschi fbshipit-source-id: d62d9c2a5eee3546a81d2aad52b7f73763315b18