Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/app/ios/test_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading