Skip to content

Commit 5954880

Browse files
zhongwuzwfacebook-github-bot
authored andcommitted
Fixes syntax of autolink script (#24882)
Summary: Oops, fixes syntax of autolink script landed in #24867. ## Changelog [iOS] [Fixed] - Fixes syntax of autolink script Pull Request resolved: #24882 Differential Revision: D15371272 Pulled By: cpojer fbshipit-source-id: 8538be040b8b116b9651dc26749ab8febad0fe7c
1 parent 9004029 commit 5954880

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

RNTester/Podfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ target 'RNTester' do
77
# use_frameworks!
88

99
project 'RNTesterPods.xcodeproj'
10+
11+
# Enable TurboModule
1012
use_react_native!(path: "..", turbo_modules_enabled: true)
13+
pod 'React-turbomodule-samples', :path => '../ReactCommon/turbomodule/samples'
1114

1215
# Additional Pods which aren't included in the default Podfile
1316
pod 'React-RCTCameraRoll', :path => '../Libraries/CameraRoll'
@@ -16,7 +19,6 @@ target 'RNTester' do
1619

1720
# Additional Pods which are classed as unstable
1821
#
19-
# To use fabric: add `fabric_enabled` option to the use_react_native method above
20-
21-
pod 'React-turbomodule-samples', :path => '../ReactCommon/turbomodule/samples'
22+
# To use fabric: add `fabric_enabled` option to the use_react_native method above, like below
23+
# use_react_native!(path: "..", turbo_modules_enabled: true, fabric_enabled: true)
2224
end

scripts/autolink-ios.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def use_react_native! (options={})
77
fabric_enabled = options[:fabric_enabled] ||= false
88

99
# Include Turbo Modules dependencies
10-
turbo_modules_enabled = options[:turbo_modules_enabled ||= false
10+
turbo_modules_enabled = options[:turbo_modules_enabled] ||= false
1111

1212
# Include DevSupport dependency
1313
production = options[:production] ||= false

0 commit comments

Comments
 (0)