Skip to content

Commit

Permalink
# Check both symbol and string keys with default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Dec 10, 2024
1 parent 434cfff commit e5eadf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/react_native/e2e/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ end
target 'OnnxruntimeModuleExample' do
config = use_native_modules!

use_react_native!(:path => config["reactNativePath"])
# Check both symbol and string keys with default value
use_react_native!(:path => config[:reactNativePath] || config["reactNativePath"] || '../node_modules/react-native')

use_frameworks!

Expand Down
3 changes: 2 additions & 1 deletion js/react_native/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ end
def shared
config = use_native_modules!

use_react_native!(:path => config["reactNativePath"])
# Check both symbol and string keys with default value
use_react_native!(:path => config[:reactNativePath] || config["reactNativePath"] || '../node_modules/react-native')

# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
Expand Down

0 comments on commit e5eadf5

Please sign in to comment.