From 1a2d195645d103d6cbdb5972b3aac1745514e046 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Tue, 19 May 2026 10:50:16 +0200 Subject: [PATCH] fix(apple): help community modules find React Native --- packages/app/ios/test_app.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/app/ios/test_app.rb b/packages/app/ios/test_app.rb index 85bd40a56..b8d4501e1 100644 --- a/packages/app/ios/test_app.rb +++ b/packages/app/ios/test_app.rb @@ -105,6 +105,11 @@ def use_react_native!(project_root, project, options) react_native_path = Pathname.new(project[:react_native_path]) + # A significant number of community modules use this environment variable to + # find React Native: + # https://github.com/search?q=NOT+is%3Afork+language%3ARuby+REACT_NATIVE_NODE_MODULES_DIR&type=code + ENV['REACT_NATIVE_NODE_MODULES_DIR'] = react_native_path.parent.to_s + include_react_native!(**options, app_path: find_file('package.json', project_root).parent.to_s, path: react_native_path.relative_path_from(project_root).to_s,