From 5954880875d8dfb9b7868aa316647f8fe2b3d8c3 Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Thu, 16 May 2019 02:45:34 -0700 Subject: [PATCH] Fixes syntax of autolink script (#24882) Summary: Oops, fixes syntax of autolink script landed in https://github.com/facebook/react-native/pull/24867. ## Changelog [iOS] [Fixed] - Fixes syntax of autolink script Pull Request resolved: https://github.com/facebook/react-native/pull/24882 Differential Revision: D15371272 Pulled By: cpojer fbshipit-source-id: 8538be040b8b116b9651dc26749ab8febad0fe7c --- RNTester/Podfile | 8 +++++--- scripts/autolink-ios.rb | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RNTester/Podfile b/RNTester/Podfile index 5671febe174eec..6c403e44fdd416 100644 --- a/RNTester/Podfile +++ b/RNTester/Podfile @@ -7,7 +7,10 @@ target 'RNTester' do # use_frameworks! project 'RNTesterPods.xcodeproj' + + # Enable TurboModule use_react_native!(path: "..", turbo_modules_enabled: true) + pod 'React-turbomodule-samples', :path => '../ReactCommon/turbomodule/samples' # Additional Pods which aren't included in the default Podfile pod 'React-RCTCameraRoll', :path => '../Libraries/CameraRoll' @@ -16,7 +19,6 @@ target 'RNTester' do # Additional Pods which are classed as unstable # - # To use fabric: add `fabric_enabled` option to the use_react_native method above - - pod 'React-turbomodule-samples', :path => '../ReactCommon/turbomodule/samples' + # To use fabric: add `fabric_enabled` option to the use_react_native method above, like below + # use_react_native!(path: "..", turbo_modules_enabled: true, fabric_enabled: true) end diff --git a/scripts/autolink-ios.rb b/scripts/autolink-ios.rb index 2fcbb8529c30b5..21dd1b927096b7 100644 --- a/scripts/autolink-ios.rb +++ b/scripts/autolink-ios.rb @@ -7,7 +7,7 @@ def use_react_native! (options={}) fabric_enabled = options[:fabric_enabled] ||= false # Include Turbo Modules dependencies - turbo_modules_enabled = options[:turbo_modules_enabled ||= false + turbo_modules_enabled = options[:turbo_modules_enabled] ||= false # Include DevSupport dependency production = options[:production] ||= false