From e5eadf52e6a0e564f6481d2f099cf2a2a64ee620 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Tue, 10 Dec 2024 11:00:51 -0800 Subject: [PATCH] # Check both symbol and string keys with default value --- js/react_native/e2e/ios/Podfile | 3 ++- js/react_native/ios/Podfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/react_native/e2e/ios/Podfile b/js/react_native/e2e/ios/Podfile index 0272c23092838..541ae8b9f9bcf 100644 --- a/js/react_native/e2e/ios/Podfile +++ b/js/react_native/e2e/ios/Podfile @@ -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! diff --git a/js/react_native/ios/Podfile b/js/react_native/ios/Podfile index ad8a5ce3b2d5f..7fe547439a578 100644 --- a/js/react_native/ios/Podfile +++ b/js/react_native/ios/Podfile @@ -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!