Skip to content

Commit

Permalink
Fix passing react native path in Podfile template (#29285)
Browse files Browse the repository at this point in the history
Summary:
Since react-native-community/cli@e949e23#diff-d1800049b92343288bcbc1c484575058 the RN cli script returns an object with `:reactNativePath` instead of just JSON. Not super familiar with how objects / JSON works in ruby but using this syntax instead works.

## Changelog

[Fixed] [iOS] - Fix passing react native path in Podfile template

Pull Request resolved: #29285

Test Plan: Tested in a project inside a monorepo using the latest version of RN CLI that the proper react-native path is now passed.

Reviewed By: fkgozali

Differential Revision: D23941162

Pulled By: hramos

fbshipit-source-id: 0115412ec6d6bca101612d760dfc00cf89d97f1e
  • Loading branch information
janicduplessis authored and facebook-github-bot committed Sep 26, 2020
1 parent 8d4b5ef commit e599d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ platform :ios, '10.0'
target 'HelloWorld' do
config = use_native_modules!

use_react_native!(:path => config["reactNativePath"])
use_react_native!(:path => config[:reactNativePath])

target 'HelloWorldTests' do
inherit! :complete
Expand Down

0 comments on commit e599d6c

Please sign in to comment.